#Dara-webhooks

1 messages ยท Page 1 of 1 (latest)

tardy pewter
twin galleon
#

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.

tardy pewter
#

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?

twin galleon
rapid onyx
#

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?

twin galleon
#

Nothing

rapid onyx
#

Nothing? As in no output at all?

twin galleon
#

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.

wicked jacinth
#

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?

twin galleon
#

in the resend event or the listen command?

#

Neverminf, --latest is an unknown flag in resend event

wicked jacinth
#

yeah I meant in the listen

twin galleon
#

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

wicked jacinth
#

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

twin galleon
#

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

wicked jacinth
#

Are you sure you used --latest?

#

But yes clearly the CLI is ignoring the events because they get those in the wrong version

twin galleon
#

Without --latest: Received event with non-default API version, ignoring api_version=2020-08-27

wicked jacinth
#

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

twin galleon
#

It's ok, dont worry about it. I'll use what works.

#

At least i know that API versions is the cause

wicked jacinth
#

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

twin galleon
#

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.

wicked jacinth
#

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 ๐Ÿ˜ฆ

twin galleon
#

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.

wicked jacinth
#

thanks a lot for sharing

twin galleon
#

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

wicked jacinth
#

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

twin galleon
#

ah i see lol

#

Sounds good

#

I just wanted to test the new VSC extension! ๐Ÿ˜€

#

Thanks for your help. it did help

wicked jacinth
#

Glad to hear it ๐Ÿ™‚

twin galleon
#

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.

rapid onyx
#

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.

twin galleon
#

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.

rapid onyx
twin galleon
#

Thanks i got the last message.

#

Have a good eveving!

rapid onyx
#

You too!