#Dara-webhooks
1 messages ยท Page 1 of 1 (latest)
The load from api works though outside of VSC extension. However, it's missing that variable in the extension.
It's also missing the project variable.
I remember i was able to make something work with the extension on my old laptop but on my M1 desktop, it doesnt work.
I'm not very familiar with the VSC extension - do you have a guide or docs that you're referencing so I can take a look?
Hello! Can you try running stripe listen on the command line with --log-level=debug and let us know what the output says when you trigger events?
I'm wondering it's you're running into this issue: https://github.com/stripe/stripe-cli/issues/600
Nothing
Nothing? As in no output at all?
Nothing, it doesnt read at all.
Is it because of different API version?
I am upgrading the API version to 2020 in backend but live is still on 2019.
the checkout.session.completed event says the api is still on 2019.
I saw this yesterday too and someone only got that event when they passed --latest
can you try that? cc @rapid onyx have you heard of this before?
in the resend event or the listen command?
Neverminf, --latest is an unknown flag in resend event
yeah I meant in the listen
Nothing
but if i trigger the sample event, it goes to the dashboard. Then from the dashboard i would have to forward from api
I dont get it, it's making full circle
I'm not fully following most of what you are describing unfortunately
stripe listen --latest --log-level=debug in a terminal and then complete a Session and share the exact logs you're seeing
Nothing just these 2 lines
[Thu, 30 Sep 2021 16:12:14 EDT] DEBUG websocket.Client.readPump: Received pong message
[Thu, 30 Sep 2021 16:12:16 EDT] DEBUG websocket.Client.writePump: Sending ping message
ok i got somw stuffs when i add -p
[Thu, 30 Sep 2021 16:18:16 EDT] DEBUG proxy.Proxy.filterWebhookEvent: Received event with default API version, ignoring
Not i got this
Are you sure you used --latest?
But yes clearly the CLI is ignoring the events because they get those in the wrong version
Without --latest: Received event with non-default API version, ignoring api_version=2020-08-27
I'm sorry I'm really having troubles following you, can I ask you to share exact logs, like copy-paste the full log including your command (but redacting your host name or something)?
I'm struggling to understand what you are testing or debugging
It's ok, dont worry about it. I'll use what works.
At least i know that API versions is the cause
yeah, I'll flag internally I don't get why this specific event is not handled the right way, we must special case it somewhere
I have a feeling it works now bc i added --latest then remove it which is like before.
now let me try in VSC extension again
AND...it works in VSC too! Wow
Oh it's also possible it's the log-level flag but more likely the --latest flag that did some magic.
yeah I think basically it's when we configure the webhook endpoints for the CLI
they get "pinned" to a version and sometimes it's in a weird state
sorry for the confusion ๐ฆ
Ok i confirm that bc i have multiple accounts, i really need to add the --project flag.
I was trying to add it in the VSC extension but there isn't any variable for that. so when i was looking at the doc i sent you, they said to add this line in the settings instead.
"stripe.projectName": "<project_id>"
Without this, it doesnt work for me.
I hope this info can help other people in the future.
thanks a lot for sharing
If could make a request for the VSC extension, it would be great to add the --load-from-webhooks-api variable. Since i have different webhooks endppints for each event. It's much more organized this way because Firebase functions has logs per endpoint
It's the one i usually use. it forwards the domain of all webhooks to a localhost so i don't need to split by event types
we'll flag to the team!
I recommend using the CLI in the terminal for now if I were you since you have a pretty advanced workflow
ah i see lol
Sounds good
I just wanted to test the new VSC extension! ๐
Thanks for your help. it did help
Glad to hear it ๐
How do i retrieve archived message? I finsihed work yesterday but is not sure if stripe dev replied me. When i came back to discord this morning i lost the thrread.
You can click on the threads button at the top, then switched to the Archived tab and find your thread there, or you can use the search in that same interface:
It's the button that looks like a # with a message bubble in the lower right. It has 9 next to it in my screenshot above.
oh that button is not there for me.
Perhaps if you can send me a print screen of the messages after the last one i wrote, i'd much appreciat eit
You are admin, i dont have the create thread either.
That's strange... I unarchived your previous thread. Does this link work? #892536624313954334 message
You too!