N
Novuβ€’11mo ago
mohitxskull.dev

NovuProvider not working in GCP

I am using novuprovider and a custom notification panel its working good in dev env, https, http, when i build it with docker and run locally but when it runs on the Google Cloud Run it dosent work and keeps loading i checked the console so i saw that there are no request being sent from frontend like the request to intialize session is being sent in dev env but not in deployed one on GCP
No description
No description
13 Replies
Tomer Barnea
Tomer Barneaβ€’11mo ago
@Engineering can we get your help here today? πŸ™‚
mohitxskull.dev
mohitxskull.devOPβ€’11mo ago
if you want i can prepare a version to reproduce this ?
Tomer Barnea
Tomer Barneaβ€’11mo ago
If you can @mohitxskull.dev that can be great, thank you!
mohitxskull.dev
mohitxskull.devOPβ€’11mo ago
Sorry to waste your time When i created a minimal version to reproduce this issue, i was not able to eventhough the code is same https://github.com/mohitxskull/novu-reproduce its working on google cloud
GitHub
GitHub - mohitxskull/novu-reproduce
Contribute to mohitxskull/novu-reproduce development by creating an account on GitHub.
mohitxskull.dev
mohitxskull.devOPβ€’11mo ago
you can close this issue
empe
empeβ€’11mo ago
So, does this repo contain the configurations that work with GCP?
mohitxskull.dev
mohitxskull.devOPβ€’11mo ago
There no special configuration My code still mot working But this one is working well and good
Pawan Jain
Pawan Jainβ€’11mo ago
@mohitxskull.dev are you self hosting Novu here in google cloud platform virtual machine?
mohitxskull.dev
mohitxskull.devOPβ€’11mo ago
i am not self hosting
Novu_Bot
Novu_Botβ€’11mo ago
@mohitxskull.dev, you just advanced to level 1!
mohitxskull.dev
mohitxskull.devOPβ€’11mo ago
Found the issue, it was not related to novu i deployed my code with hardcoded values not loading from env or api, it worked! πŸ˜„ @Tomer Barnea @Emil @Pawan Jain Thank you for your support And novu is really good! πŸ‘ Thank you for building novu! The Client library are also written nicely so it was easy to integrate this was the issue https://stackoverflow.com/questions/69972329/how-to-access-env-variables-in-google-cloud-run-using-next-js the NEXTPUBLIC env vars were not accesiable in frontend and thats why novu was not getting intialized
Pawan Jain
Pawan Jainβ€’11mo ago
Thanks for sharing πŸ™‚
empe
empeβ€’11mo ago
@mohitxskull.dev I'm glad you manage to find the issue! Thank you for circling back to us and letting us know!
Want results from more Discord servers?
Add your server