ogame icon indicating copy to clipboard operation
ogame copied to clipboard

Getting "Forbidden" at start up

Open antal-kajzer opened this issue 1 year ago • 9 comments

hi,

I just pulled the master, filled the .env file with my login details, and when trying to start up, I'm getting the following error:

ogame | DEBU [ogame.go:525] post sessions ogame | 2024/02/27 16:05:45 403 Forbidden : {"error":{"message":"Forbidden"}} ogame | exit status 1 ogame exited with code 1

Can you please advise?

antal-kajzer avatar Feb 27 '24 16:02 antal-kajzer

Are you able to login on ogame website directly using the same credentials?

alaingilbert avatar Feb 27 '24 19:02 alaingilbert

Yes, of course. I use the exactly same credentials.

antal-kajzer avatar Feb 28 '24 09:02 antal-kajzer

hi @alaingilbert Do you have any update on this issue? Do you need any additional information?

Best, Antal

antal-kajzer avatar Mar 04 '24 09:03 antal-kajzer

@antal-kajzer I just got the same error while testing/developing on my machine. It turns out that some new changes created this issue. I reverted back to 3b626bf350332b0ffea02d7a12538c48a66b2b23 and then I could login again.

I hope this information may help you and anyone willing to dive into this issue.

nandavereda avatar Mar 13 '24 16:03 nandavereda

hi @nandavereda Thank you for your response, however when I run "git checkout 3b626bf350332b0ffea02d7a12538c48a66b2b23" I'm getting error: "fatal: reference is not a tree: 3b626bf350332b0ffea02d7a12538c48a66b2b23"

Can you please double-check the commit hash?

antal-kajzer avatar Mar 14 '24 09:03 antal-kajzer

Hi @antal-kajzer My bad. This commit is actually from a fork. I was not even aware that I was using a forked version. I do not know how much they diverge, but I intend to investigate why it is not using the upstream, which is preferable in my opinion.

Here it is: https://github.com/ogame-tbot-net/ogame/tree/3b626bf350332b0ffea02d7a12538c48a66b2b23

nandavereda avatar Mar 16 '24 23:03 nandavereda

Are you guys having the issue on the develop branch, or the master branch ? (I haven't merged develop for a while)

Edit: I just merged it

alaingilbert avatar Mar 17 '24 00:03 alaingilbert

hi guys, @nandavereda thank you, it working with that revision!

@alaingilbert I pulled the last master and I had issues on that branch.

antal-kajzer avatar Mar 18 '24 09:03 antal-kajzer

The develop branch is actually the most updated branch here. Alain tagged also the release Version 52.0.0

Have fun!

0xE232FE avatar Mar 18 '24 12:03 0xE232FE