Why does json.decoder.JSONDecodeError appear in Replit, but not in VS code?

**Question: Why does json.decoder.JSONDecodeError appear in Replit, but not in VS code? **

Screenshots, links, or other helpful context:

				r = requests.get(
						f'https://discord.com/api/v9/channels/{channelid}/messages?{query_parameters}',headers=headers
						)
				jsonn = json.loads(r.text)
				if len(jsonn) == 0:
						break

				for value in jsonn:
                         #do something

Snippet of the code where its erroring, the full code works perfectly in VS code, but when pasted over to replit, the error json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) appears.

Is it a Replit restriction where you can’t send a request to the discord API, or am I just messing something up here?
If any more parts of my code is required, please do let me know.