N
Novu11mo ago
AlfonsoB18

API not connecting on Production

Hello, I'm using the Novu SDK for Java, I can connect, create, launch triggers etc while working in my local but after launching to prod, the app doesn't connect anymore and I get this error message. 2024-01-04 19:10:31.110 ERROR 1 --- [ XNIO-1 task-2] co.novu.common.base.Novu: Error creating Subscriber org.springframework.web.client.HttpClientErrorException$Unauthorized: 401 Unauthorized: [no body]
5 Replies
Pawan Jain
Pawan Jain11mo ago
@AlfonsoB18 Production and development environment has different keys Could you double check if you are using production environment keys in prod?
AlfonsoB18
AlfonsoB18OP11mo ago
Hello, yes, I'm using this production apikey for the deployed version of my project, in my application.yml file
No description
Pawan Jain
Pawan Jain11mo ago
Its strange because 401 error is due to wrong api keys Did you change baseUrl?
AlfonsoB18
AlfonsoB18OP11mo ago
You were right it was something related to the apikey configuration. Thank you!
Pawan Jain
Pawan Jain11mo ago
Thanks for the update
Want results from more Discord servers?
Add your server