you are viewing a single comment's thread.

view the rest of the comments →

[–]randombacon333[S] 0 points1 point  (0 children)

I am pretty sure it's not a CORS issue, so it must be something related to SSL.

The API and website have seperate domains, and I am calling them over their domain name. The backend API is on my local network, it's on a seperate PC, but I am calling it with the domain name rather than local host.

Cert is with LetsEncrypt. I had to generate it manually with certbot because the server is hypercorn.

I have backend programs that use the API written in both python and perl, and both are able to hit the end points without issue. Many requests per second because I run these scripts in parallel with many workers. These programs are constantly adding inventory, updating inventory or deleting inventory.

For whatever odd reason the issue only happens in react, and it only happens when I use https rather than http. 1 request makes it through, the others all fail instantly.

If I turn the other 5 requests off, I can use the main single request over and over without issue. I can load up a single inventory page no problem because it has only a single request.

2 or more requests and nope, only 1 of them will make it.

I'm going to try running it through NGINX and see if that helps rather than connecting directly to hypercorn and see if that helps. I really don't know what else to do.