Hey @morganperre
Thanks for your reply.
Yes, I have some other ENV VARS set on my side. Below you can find the schema:
app:
port:
type: 'number'
nodeEnv:
type: 'string'
required: true
backendApiUrl:
type: 'string'
required: true
applicationUrl:
type: 'string'
required: true
db:
url:
type: 'string'
required: true
ssl:
type: 'boolean'
required: true
forest:
authSecret:
type: 'string'
required: true
envSecret:
type: 'string'
required: true
clientId:
type: 'string'
required: true
stripe:
secretKey:
type: 'string'
required: true
redis:
host:
type: 'string'
required: true
port:
type: 'number'
required: true
sentry:
dsn:
type: 'string'
required: true
About the request URL: https://forestadmin-dev.tymeshift.io/forest/authentication/callback?code=3nLJGhQ_p0Ppue0EK7j8WktoGHw4caJUbmQ1XJ1P3Wuk_gMcHu7Bf7PYfHgkX47w&state=%7B%22renderingId%22%3A66333%7D
This made me think that this URL is my dev environment and that I was doing something really wrong, and the conclusion is: at Tymeshift we are fetching the above-mentioned schema values from an internal vault, and I was pulling the dev keys instead of the local ones
I deleted my config.yml
file, fetched again specifying the correct environment (local), and now I have a different error, in a different endpoint. Below you can find the compiled information:
Request URL failing: https://api.forestadmin.com/oidc/auth
Payload:
client_id: ...-uMR6RVZ4XC4UEA
scope: openid email profile
response_type: code
redirect_uri: http://localhost:3310/forest/authentication/callback
state: {"renderingId":66333}
The error is different now:
{"errors":[{"status":400,"detail":"Invalid client id","meta":{},"name":"InvalidClientIdError"}]}
My env vars related to my local FA:
authSecret: ...9d8be9a2be
envSecret: ...2ece481dc2
clientId: ..._QT_1JATOiSo-uMR6RVZ4XC4UEA
And now I also got this error on my server logs:
[forest] 🌳🌳🌳 Unexpected error: Forest server request error: Client network socket disconnected before secure TLS connection was established
{
"jse_shortmsg": "Forest server request error",
"jse_cause": {
"code": "ECONNRESET",
"path": null,
"host": "api.forestadmin.com",
"port": 443
},
"jse_info": {},
"stack": "VError: Forest server request error: Client network socket disconnected before secure TLS connection was established\n at /Users/raphaelneves/Development/Repos/Forest-Admin/node_modules/forest-express-sequelize/node_modules/forest-express/dist/services/forest-server-requester.js:53:23\n at Request.callback (/Users/raphaelneves/Development/Repos/Forest-Admin/node_modules/forest-express-sequelize/node_modules/superagent/lib/node/index.js:893:3)\n at ClientRequest.<anonymous> (/Users/raphaelneves/Development/Repos/Forest-Admin/node_modules/forest-express-sequelize/node_modules/superagent/lib/node/index.js:810:12)\n at ClientRequest.emit (node:events:402:35)\n at ClientRequest.emit (node:domain:475:12)\n at TLSSocket.socketErrorListener (node:_http_client:447:9)\n at TLSSocket.emit (node:events:390:28)\n at TLSSocket.emit (node:domain:475:12)\n at emitErrorNT (node:internal/streams/destroy:164:8)\n at emitErrorCloseNT (node:internal/streams/destroy:129:3)\n at processTicksAndRejections (node:internal/process/task_queues:83:21)"
}
Thoughts?