-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Too many redirects #139
Comments
@sacdallago We already have environment variables for all API endpoints. See the defaults in the Dockerfile
My first guess would be to set them as follows
Edit: Btw, I don't see the errors in my console. Have you solved the issue already? |
What you are saying is very different from what I am complaining about :D I'm changing the env vars already through my docker-compose file ( read PokemonGoers/PokeData#191 ). My suggestion was to have another env var, which would avoid one redirect: the redirect from Anyway, as I mentioned in a very eloquent and high english here, all problems seem to have been solved?! Magically!? Like.. No idea!!? |
@sacdallago In your docker-compose file from PokemonGoers/PokeData#191 (comment) you have
My suggestion was to to add But I guess since everything is working now (?) it's fine :D |
wouldn't adding the protocol overwrite something somewhere? I imagine you use those variables either to:
So I fear that adding the protocol will either break the thing or be completely pointless(in case 1). It works, yes. But this is an issue anyway :) |
We are using the variable consistently in the first way and so far nothing has been broken yet ;) |
Just a side note: |
ok, I'll try out the suggestions on a test instance when I'm back from SFO in a week :) But since this is working, I'll close for now, and sorry for talking to the dead :D |
Yay, it was too good to be true! It now happens consistently :) And I have no idea of how to fix this, tried:
The last one didn't work at all :) the other ones give all sorts of problems, but mainly the Don't worry about |
@sacdallago Where do you see the In theory, it should work like this:
To me this is a lot of proxying but I don't see any redirects here (as in |
@sacdallago Can you please redeploy as soon as https://hub.docker.com/r/pokemongoers/catch-em-all/builds/bmhxzjysukghvxqaomvgxvn/ is done building to get the changes from #158. |
@johartl sorry for the delay: everything redeploys automatically (so as soon as stuff builds on hub, give it like 5 min?). The errors happen in the chrome console @ predictemall.online . I will be a bit more active starting tomorrow (am currently at a Google conference) |
This afternoon when I checked there was still an old container active (from Oct 27th). So either something is wrong with the automated deployment or with my cache :/ |
Yup, not happening on my machine anymore either. I'm not happy that this thing is not happening consistently. Need to stress test it once I'm back from SFO, btw check your email |
I suspect this had something to do with the service worker cache not being flushed. I tackled this issue in #162. Also, I found that some request were send to Thanks for that mail! I'm going to investigate further once #162 #163 and #164 are merged and deployed. Especially the broken service worker makes it really frustrating to debug :/ |
Hey guys,
still working on the final deployment. Apart from it being hard to judge if stuff is not working because it's not working or it's not working because something is wrong on the deployment, I have one issue which I'm pretty sure is a mixture of how the app needs to be deployed and how you have implemented things.
If you try to go to the pokedex on htpps://predictemall.online and you open up your debug console, you'll notice the:
core.edb342e….bundle.js:2234 GET https://predictemall.online/api/pokemon/name/bul net::ERR_TOO_MANY_REDIRECTS
error. This is bad. If you actually try to go to https://predictemall.online/api/pokemon/name/bul, you will have three redirects (in my opinion, didn't CURL fact-check it):Apart from the fact that there is no data coming back from the API (but I have complained about that as well, don't worry PokemonGoers/PokeData#191 ), this is something that needs to get fixed ASAP. Maybe assuming the protocol to be https instead of http will lower the number of redirects and chrome won't complain anymore. This should be an ENV var, if you are wondering: cos otherwise it's gonna fuck up development (no one develops in https)
The text was updated successfully, but these errors were encountered: