novuhq / actions-novu-sync

Sync your state with Novu Cloud.
https://novu.co
MIT License
0 stars 0 forks source link

400 Errors During Deployment - Invalid bridgeUrl #32

Closed kyng-cytro closed 3 weeks ago

kyng-cytro commented 3 weeks ago

While attempting to deploy my application, I consistently encountered 400 errors. After further investigation, including simulating the request with Postman and referencing this repository, I discovered that the error was due to an invalid bridgeUrl. The request lacked an X-Novu-Signature, which is likely the cause.

There are two possible areas where the issue could reside:

  1. The code at https://api.novu.co/v1/bridge/sync?source=githubAction might need to be updated to include the X-Novu-Signature in the request to the provided bridgeUrl.
  2. The GitHub Action's code might need an update to ensure that the signature is sent correctly.

Workaround: I was able to resolve the issue temporarily by disabling strictAuthentication, deploying the application, and then re-enabling strictAuthentication.

kyng-cytro commented 3 weeks ago

Totally my fault I was missing the NOVU_SECRET_KEY env