Missing authorization header
Hello Team,
@novu/api
is not working with me anymore, I'm getting that there is a Missing authorization header
, so here is my code
in console.log, I can see clearly the key is passed correctly and in the log that is coming from novu.
here is the sent header
headers: Headers { accept: 'application/json', authorization: ' <NOVU_SECRET_KEY>', ....}
what I noticed is in your doc it should be --header 'Authorization: **ApiKey** <NOVU_SECRET_KEY>'
and from the SDK it's only NOVU_SECRET_KEY
could you please help me solve this issue?
16 Replies
this is the error log. you can see clearly that the secretKey is being passed
Hi Omar
Checking it from my end
Checking it from my end
Hey Pawan, any update about the issue?
@Omar Khatib, you just advanced to level 1!
@Omar Khatib
I just checked from my side. Could you please check with latest version v1.4.0
It’s already v1.4
@Omar Khatib
its a bit weird issue. I checked this from my end but could not replicate. Any chance you can hop on screen sharing session if you are still facing this issue
@Pawan Jain do you have any time today?
DMing
@Omar Khatib
Did you get a chance to create a minimal example of honojs ?
Hey Pawan, I just noticed the issue with another SDK, so I'm assuming it's Vercel, let me check before I give you the minimal repo
Sure Omar
Hey Pawan, so the other SDK, was a wrong env. not Vercel
I will prepare tomorrow morning a minimal repo for you
Hey Pawan,
here is the Minimal reproduction: https://github.com/omarkhatibco/mando-api-minimal
I also deployed it on Vercel, seperatly and tried. and still does not work
I batched the global fetch to see the requests, the headers object is empty
[FETCH OUT] {
requestId: '14272c3e-9a96-4c05-9821-960c27c805d5',
url: '[object Request]',
method: 'GET',
headers: undefined,
body: null,
timestamp: '2025-07-16T12:57:14.254Z'
}
GitHub
GitHub - omarkhatibco/mando-api-minimal
Contribute to omarkhatibco/mando-api-minimal development by creating an account on GitHub.
anyway, waiting for your feedback, if you need my secrect key, I could provide it to you
Omar, able to reproduce on vercel with your repo. will keep you updated
Hey Pawan, any update here?