Status Code: 502 Bad Gateway Request URL https://*myBffUrl*/signin-oidc?code=.... #312
Replies: 4 comments 2 replies
-
| I'm sorry for the scant information, here's the Bffs logs:  | 
Beta Was this translation helpful? Give feedback.
-
| A 502 error can't be coming from Identity Server, AFAIK. That's a gateway error from a proxy or similar, in our kubernetes case it usually means the pod has crashed | 
Beta Was this translation helpful? Give feedback.
-
| Thanks for the help. | 
Beta Was this translation helpful? Give feedback.
-
| Looking at the logs, it's the identity provider that returns the error 'invalid_grant' and a 400 status code. This turns into an exception in the microsoft authentication library and makes the BFF return a 500 error. Your reverse proxy then turns that into a 502 error. Now the question is, why are you getting the invalid grant error? Can you first verify that the authentication flow works correctly against your cloud identity provider? | 
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Thanks in advance.

Hi,
I am faced with the problem of hosting the React-Vite application on a virtual machine in my cloud. I use split hosts in docker containers and hide them behind a reverse proxy server. There are no problems with local testing. But there is a problem in the work environment.
There is no problem with local testing.
Beta Was this translation helpful? Give feedback.
All reactions