HTTP get request to a google sheet works in the development environment but not in deployed environment

Godot Version

4.3

Question

I am using Google sheets and Google forms as my database for my game. I am able to use http gets and posts perfectly from the development environment and see the updates working perfectly. When I deploy using itch.io I don’t get any data on my gets.

I thought it was an itch problem, so I got an AWS instance and deployed my app through Amplify on AWS and got the same Javascript error when trying to fetch data. I ran curl on the AWS console and the data came back fine.

The javascript error was:
index.js:474 USER ERROR: Condition “err != 0 && err != 1” is true. Returning: FAILED

index.js:474 at: _process (core/io/stream_peer_gzip.cpp:118)
index.js:474 USER ERROR: Parse JSON failed. Error at line 0:
index.js:474 at: parse_string (core/io/json.cpp:576)
index.js:459
index.js:474 USER ERROR: Condition “err != 0 && err != 1” is true. Returning: FAILED
index.js:474 at: _process (core/io/stream_peer_gzip.cpp:118)
index.js:474 USER ERROR: Parse JSON failed. Error at line 0:
index.js:474 at: parse_string (core/io/json.cpp:576)
index.js:459

The return code was 200, but the response body was 0 bytes.

Any ideas?