Hello. So, I had this issue with installing Rails feature in my project, and I managed to do it and work in development mode. However, I’m having issues with the production part.
Expected behavior
It is expected that the production environment works well and the Dashboard has no errors.
Actual behavior
In production, I already put all the correct keys and auth in my ENV variables. This morning, the project was not working and I was getting
It seems there are issues with authentication.
To provide us a complete log of what happened, can you please export a HAR of the network calls?
This can be done with Chrome, in the dev tools, under the network tabs, right-click on the network calls stack and select “export as HAR”.
After discussion with my teammates, a possible cause is that you have multiples instances of your production server.
Please note that (if it is the case) all instances should share the same client-id, to do this it is required to define a static client-id.
Documentation about how to set up a static client-id can be found here.
If this does not fix your case, please consider providing HAR as mentioned in my first message
Thanks for the HAR file.
We can see the following error message in it:
"{\"errors\":[{\"status\":400,\"detail\":\"The redirect uri must be one of https://app.arkangel.ai/forest/authentication/callback. Received \\\"https://app-live-287415.uc.r.appspot.com/forest/authentication/callback\\\"\",\"meta\":{},\"name\":\"InvalidRedirectUriError\"}]}"
Can I ask you:
which value you defined for your APPLICATION_URL environment variable in production?
the forest_client_id you have setup in production using the documentation.
It looks like there is something inconsistent in your production environment between the endpoint defined on Forest Admin and the clientId URL.
So you are right. I changed the APPLICATION_URL when creating the static cilent_id. Now is working. However, I still have errors in my dashbord. I can’t create new dashboard or values. I get this:
I have a quick question regarding the last error you faced. filter_map has been added from ruby 2.7.
What is your version of ruby in development and on your production servers?