N
Novu5mo 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 Jain5mo ago
@AlfonsoB18 Production and development environment has different keys Could you double check if you are using production environment keys in prod?
AlfonsoB18
AlfonsoB185mo 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 Jain5mo ago
Its strange because 401 error is due to wrong api keys Did you change baseUrl?
AlfonsoB18
AlfonsoB185mo ago
You were right it was something related to the apikey configuration. Thank you!
Pawan Jain
Pawan Jain5mo ago
Thanks for the update
Want results from more Discord servers?
Add your server
More Posts