balance
Explore posts from serversNNovu
•Created by balance on 8/8/2023 in #💬│support
Unexpected provider error
So how would you receive notifications for testing purposes? Do you guys have an app for that?
27 replies
NNovu
•Created by balance on 8/8/2023 in #💬│support
Unexpected provider error
thanks, I'm quit sure that my issue has to do with the mismatch between my app that receives notifications and the setup of the integration though.
27 replies
NNovu
•Created by balance on 8/8/2023 in #💬│support
Unexpected provider error
I'm fine using whatever - I just don't want to write a whole example application to simply receive notifications for testing purposes. There must be a simple way, can't be that uncommon o.O
27 replies
NNovu
•Created by balance on 8/8/2023 in #💬│support
Unexpected provider error
I do.
I use the FCM Toolkit to generate a device token. The app uses the above google services file but it doesn't match novus format - for whatever reason.
27 replies
NNovu
•Created by balance on 8/8/2023 in #💬│support
Unexpected provider error
I just assume Novu adopts the file format provided by google.
27 replies
NNovu
•Created by balance on 8/8/2023 in #💬│support
Unexpected provider error
Can't I just receive notification for testing purposes in the FCM console or something like that?
27 replies
NNovu
•Created by balance on 8/8/2023 in #💬│support
Unexpected provider error
https://docs.novu.co/channels/push/fcm#generate-service-account-key-json
Is there a mismatch in configration version?
27 replies
NNovu
•Created by balance on 8/8/2023 in #💬│support
Unexpected provider error
ah I just saw, if I use the FCM toolbox google-service.json for the FCM integration, I get
{
"code": "app/invalid-credential",
"message": "Service account object must contain a string \"project_id\" property."
}
27 replies
NNovu
•Created by balance on 8/8/2023 in #💬│support
Unexpected provider error
I just don't know how to debug this if the error is
{}
27 replies
NNovu
•Created by balance on 8/8/2023 in #💬│support
Unexpected provider error
Okay, that doesn't work. How can I set the logger to be more verbose? So I get an actual error.
27 replies
NNovu
•Created by balance on 8/8/2023 in #💬│support
Unexpected provider error
So to clarify:
I set up the FCM integration using the above google-services.json. I can then send a notification with the above code to the app, right?
27 replies
NNovu
•Created by balance on 8/8/2023 in #💬│support
Unexpected provider error
It just gives you a device tolen but maybe I have to use their service account? https://github.com/SimonMarquis/FCM-toolbox/blob/master/app/google-services.json
They use a public one or you compile it yourwelf with your own services config file, which I fidn't.
I'm inexperienced with FCM.
27 replies
NNovu
•Created by balance on 8/8/2023 in #💬│support
Unexpected provider error
The only place I used the service account json was in the FCM Integration. Neither the FCM Toolkit app I use to test it not my code to send notification uses it.
So I can't see where anything would have to match.
27 replies
NNovu
•Created by balance on 12/6/2022 in #💬│support
Why do we copy the env file?
thanks! I remember that I saw some config warning but figured it's some default thing that has nothing to do with Novu directly. I'll check it out
18 replies
NNovu
•Created by balance on 12/6/2022 in #💬│support
Why do we copy the env file?
I might if I'm not able to solve it. THanks
18 replies
NNovu
•Created by balance on 12/6/2022 in #💬│support
Why do we copy the env file?
<partly solved> Ah, interesting, thanks for that info! So chances are, I'm doing something simple wrong. Here's what I do (I pruned everything for a clean slate):
1.
[email protected]:novuhq/novu.git
=> using the next
branch.
2. Following the readme on https://github.com/novuhq/novu/tree/next/docker
2.1 cd novu/docker
2.2 cp .env.example ./local/deployment/.env
2.3 docker-compose -f ./local/deployment/docker-compose.yml up
(again, step 2.2 is to my knowledge useless since 2.3 uses a different context, might be wrong though, doesn't matter anyway)
Result: localhost:4200 works
3. I sign out because it seems I still have a login session cache.
4. I sign in again (I didn't prune the volumes)
5. I run curl -d "@user.json" -H "Authorization: ApiKey e0dc75817c0770773f66d990398d9ba2" -H "Content-Type: application/json" -X POST http://localhost:3000/v1/subscribers
6. works
7. I do a similar curl to /events/trigger and while I get errors because my payload isn't correct, it does communicate with the locally running API.
8. So if I try what I did before, using a js file, I get the issue with the fallback host. So I guess, my js is bad:
I changed it a bit, compare it to https://docs.novu.co/api/trigger-event/ so I can run it as a simple script.
So I guess my problem is kinda solved and my JS skills just suck.18 replies
NNovu
•Created by balance on 12/6/2022 in #💬│support
Why do we copy the env file?
The API endpoint keeps giving me a 401 which isn't surprising, since apparently the host it uses is
'Host', 'api.novu.co'
? Althought none of the env vars in the container define that.18 replies
NNovu
•Created by balance on 12/6/2022 in #💬│support
Why do we copy the env file?
I just try to get the API working. I follow the README on the github. Meaning:
18 replies
NNovu
•Created by balance on 12/6/2022 in #💬│support
Why do we copy the env file?
resp. it's the readme for the main branch yet the git clone command clones the next branch.
18 replies