You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We had an error, which was releated, to an invalid configuration of our env variables: NOVU_API_URL and NOVU_SECRET_KEY.
We had used the @novu/node lib before and therefore had env in place which met the naming from this lib. (NOVU_BACKEND_URL/NOVU_API_KEY)
This resulted in a misconfiguration (our fault, we could have been reading better :) ) with a strange/wrong debugging experience.
We had to take a deep dive why the following error was present and we were not able to pin down the exact origin for a few hours.
👟 Reproduction steps
Deploy self-hosted version
Deploy bridge server without proper env configuration
👍 Expected behavior
The system tried to reach the cloud url of novu instead of the self-hosted on, which is correct, but the error should represent, that the endpoint could not be reached with this configuration. like a 401 error or similar. The errors in the console of @novu/framework should also be more detailed.
Other suggestions:
we would also suggest to use a similar naming across libs for the same thing :)
manualy configurable keys, without need to just use the env vars.
👎 Actual Behavior with Screenshots
The error present at the ui was:
Workflow with id: order-recieved has an invalid state. Step with id: in-app has invalid result. Please provide the correct step result.
The console just shows, that the step could not be hydrated.
The ui shows this weird error. We think this is due to the fact, that the step before could not be handled because of the misconfiguration.
we already did but thought this had nothing to do with each other. good input though. neverthelesse, the error is still missleading and should be looked on.
📜 Description
We had an error, which was releated, to an invalid configuration of our env variables: NOVU_API_URL and NOVU_SECRET_KEY.
We had used the @novu/node lib before and therefore had env in place which met the naming from this lib. (NOVU_BACKEND_URL/NOVU_API_KEY)
This resulted in a misconfiguration (our fault, we could have been reading better :) ) with a strange/wrong debugging experience.
We had to take a deep dive why the following error was present and we were not able to pin down the exact origin for a few hours.
👟 Reproduction steps
👍 Expected behavior
The system tried to reach the cloud url of novu instead of the self-hosted on, which is correct, but the error should represent, that the endpoint could not be reached with this configuration. like a 401 error or similar. The errors in the console of @novu/framework should also be more detailed.
Other suggestions:
👎 Actual Behavior with Screenshots
The error present at the ui was:
Workflow with id: order-recieved has an invalid state. Step with id: in-app has invalid result. Please provide the correct step result.
The console just shows, that the step could not be hydrated.
The ui shows this weird error. We think this is due to the fact, that the step before could not be handled because of the misconfiguration.
Novu version
Self Hosted
npm version
k.A.
node version
20
📃 Provide any additional context for the Bug.
[email protected]
@novu/[email protected] also tested on @novu/[email protected]
👀 Have you spent some time to check if this bug has been raised before?
🏢 Have you read the Contributing Guidelines?
Are you willing to submit PR?
None
Our workflow
The text was updated successfully, but these errors were encountered: