Trouble using Javascript to access Inventory Changes Query


I am trying to consume the Shiphero API using React but seem to be having some trouble. I am using Apollo to do so, but I keep getting errors.

This is the code I’ve been using to try to make it work. I’ve been getting CORS errors, so just to see if I could get any response, I set the mode to ‘no-cors’ this is just for an internal app! I keep receiving 500 errors and cannot get any type of response. I’m a newer developer, so its entirely possible that I’m messing something up! Any help would be greatly appreciated!

Here is another screenshot of my code!

Hey @meckard,

Welcome to the ShipHero Developer Community. We’re glad to have you!
I’m going to look into this issue and get back to you.


Hey @meckard,

Thank you for your patience.

Unfortunately, we cannot help you with the code in your backend as we do not provide that kind of support here in the community. We’re not too familiar with code but we do know our API thoroughly, if you’re able to get me a request id or error I can take a further look into this.

Please let me know if you have any questions or concerns or if there is any other way we can help.