Problem connection in my project

That’s not the same request that is failing and that’s a good point. Can you share the headers request & response of the new failing request from your network tab. :slight_smile:

Kind regards



Is it possible to get someone by phone ?
I am wasting time … sorry

Sorry I didn’t see that you have an IN APP forest-rails installation. Did you change something recently that could explain this changes on authentication? Recent version upgrade? If so I would highly recommend to rollback to your last stable version to make your backoffice work again.

Kind regards,

I have just changed one thing : the DNS of the app from byapibots.io to apibots.agency

I am really embarrassed … what to do to accelerate ?

I know you are, and I’m sorry to hear about that. This DNS change seems to broke few things on your app. However I do not understand why your error this morning is different as the one you have yesterday. We were close to fix your issue and it was only remaining to modify a little bit your cors config

Can you curl your backoffice on /forest endpoint?

it s normal
I have changed once again the APPLICATION FOREST URL to https://www.apibots.agency
In what consists to curl the backoffice on forest endpoint please ?

This is the api endpoint you setup on forestadmin: https://apibots.agency. However the application url your telling your application to check for authentication is not the same: https://www.apibots.agency. So it won’t work. Please either change your domain endpoint from forestadmin app or your application url to make coherence between both :slight_smile:

where do you see i set up this url : https://apibots.agency ?
because according to me i set up : https://www.apibots.agency and not https://apibots.agency

i did the change and came back to https://www.apibots.agency in forest also
i send you the error logs in the network tabs




sorry … i prefer to use https://www.apibots.agency

Code d’état:

400 Bad Request

https://api.forestadmin.com/oidc/auth?client_id=eyJraWQiOiJFN3E2Q0FWNGxuWUtwNmdPTlFiaWlZOFhVUDVWSHhmS21VUHZRSnV0Q1Q4IiwiYWxnIjoiUlMyNTYifQ.eyJ0b2tlbl9lbmRwb2ludF9hdXRoX21ldGhvZCI6Im5vbmUiLCJyZWRpcmVjdF91cmlzIjpbImh0dHBzOi8vYXBpYm90cy5hZ2VuY3kvZm9yZXN0L2F1dGhlbnRpY2F0aW9uL2NhbGxiYWNrIl0sImFwcGxpY2F0aW9uX3R5cGUiOiJ3ZWIiLCJncmFudF90eXBlcyI6WyJhdXRob3JpemF0aW9uX2NvZGUiXSwicmVzcG9uc2VfdHlwZXMiOlsiY29kZSJdLCJlbnZpcm9ubWVudF9pZCI6ODQzOTgsImlzcyI6IkZPUkVTVF9BVVRIRU5USUNBVElPTl9TWVNURU0iLCJpYXQiOjE2MzYzODc2MjB9.f4e2zlEXHvKd6l4y_oVvaybJnZDJ2QDHI3vssoytuEnEvCLzogAw91oZqy9fYFlFozzu7qhW9ckSi1gfRzCb4Tc8daHA0veAALd5DYcYLecE3_hZVFvusCwQjOWQqQOQwCYX90FwMq2UVXdiWmiunExHG7KJOIkuFQgREloDI2AtfwefXYeDr1XES3y1MY0Hj6qisbTSsr8-5yCn20ML5X6ZReN6Gu1DX_yrd576jHlHqRpOzsHBdu_JnfkxyS2XOi3Q6tnxTOrLmbScqvJL3iE5h7pjy-Gs6rpSCDHxKkhjRwmGULmaX57i-cSUtLak3bY5EoPNkHe26Md67NgJGQ&redirect_uri=https%3A%2F%2Fwww.apibots.agency%2Fforest%2Fauthentication%2Fcallback&response_type=code&scope=openid%20email%20profile&state={"renderingId"%3D>106604}

Can you give me the response of the failing request ? There should be a more explicit error here.

Thanks

{“errors”:[{“status”:400,“detail”:“The redirect uri must be one of https://apibots.agency/forest/authentication/callback. Received “https://www.apibots.agency/forest/authentication/callback””,“meta”:{},“name”:“InvalidRedirectUriError”}]}

Why do they force me to put https://apibots.agency ?
I want to use https://www.apibots.agency instead

Hello Louis @anon16419211
Could you please help me to get the service back ?
Thank you

I have some news for you, looking at your client ID, I can see that there is a mismatch probably due to some rails cache. So to fix this, can you cleat your rails cache, restart your server and then log somewhere your application URL so we can verify that this is https://www.apibots.agency?

It should unblock you. :slight_smile:

1 Like

Thank you
It worked !
Nice day

Perfect @anthony, happy to hear that it solves your issue !

1 Like