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
@AlfonsoB18
Production and development environment has different keys
Could you double check if you are using production environment keys in prod?
Hello, yes, I'm using this production apikey for the deployed version of my project, in my application.yml file
Its strange because 401 error is due to wrong api keys
Did you change baseUrl?
You were right it was something related to the apikey configuration. Thank you!
Thanks for the update