-
Notifications
You must be signed in to change notification settings - Fork 229
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
你好,请问下配置lemonsqueezy的webhooks以后,每次付款完毕都收不到这个webook,从lemonsqueezy平台看,报了一个401 #20
Comments
401是你环境变量置错了吧 |
我觉该配置的都配置了呢 是哪个环境变量呢,就是看payment/webhook/route 里面有一个console.log("webhook") 都没有打印过这个,感觉都没进到这里 直接在外层就被拦截了一样 |
https://super-duper-carnival-jw75vrppxf59xrb-3001.app.github.dev 浏览器直接输入这个地址能打开页面么?或者用postman请求往https://super-duper-carnival-jw75vrppxf59xrb-3001.app.github.dev/api/payment/webhook 发一个请求看看能不能收到消息,如果也收不到,那就是webhook地址问题。建议本地直接用vscode自带的穿透工具,看这篇最末尾:https://weijunext.com/article/port-forwarding |
那个地址我改了一些字符所以直接点是打不开的,刚刚用postman请求还是401 |
先改成用vscode的透传地址。然后console.log("webhook")是不是放在route.ts api的最顶部?先确认有没有进入再排查问题。 postman分别往透传地址的api端口和 http://localhost:xxxx/api/payment/webhook 发请求,不用考虑真实的参数,也不用关心返回,就看api入口最顶部的console.log("webhook")打印了没。 |
我现在使用的是github的codespace进行开发,测试环境中,不知道是什么原因?难道要把项目部署到vercel上面才能收到这个webhook吗?我配置的webhook地址就像这样 https://super-duper-carnival-jw75vrppxf59xrb-3001.app.github.dev/api/payment/webhook
The text was updated successfully, but these errors were encountered: