Comments (4)
I just created a test app and it works fine. Probably your URL is malformed (copy paste mistake)
Here is the test app:
-
login to
https://captain.server.demo.caprover.com
password:captain42
-
go to the deployment tab of
webhook-test
app -
run this command form your local machine and see that the deployed version for the demo app is increasing:
curl https://captain.server.demo.caprover.com/api/v2/user/apps/webhooks/triggerbuild\?namespace\=captain\&token\=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJkYXRhIjp7InRva2VuVmVyc2lvbiI6ImJhNzYyZjlmLTQyZDctNGYxOS04MjQyLTY4ZGZkMjNiNDlmOCIsImFwcE5hbWUiOiJ3ZWJob29rLXRlc3QiLCJuYW1lc3BhY2UiOiJjYXB0YWluIn0sImlhdCI6MTcxNzAzNzM5NH0.A-fQDk4zQH2IcNkgoZGFIIfRVsaOJifAqxJV1qYD9cc -X POST
from caprover.
hmmm I even reinstalled (backup & restore) the cap rover app, but I am still getting
JsonWebTokenError: jwt malformed
at module.exports [as verify] (/usr/src/app/node_modules/jsonwebtoken/verify.js:63:17)
at /usr/src/app/built/user/Authenticator.js:148:17
at new Promise (<anonymous>)
at Authenticator.decodeGenericToken (/usr/src/app/built/user/Authenticator.js:147:16)
at Authenticator.decodeAppPushWebhookToken (/usr/src/app/built/user/Authenticator.js:117:21)
at /usr/src/app/built/injection/Injector.js:152:14
at Layer.handle [as handle_request] (/usr/src/app/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (/usr/src/app/node_modules/express/lib/router/index.js:328:13)
at /usr/src/app/node_modules/express/lib/router/index.js:286:9
at Function.process_params (/usr/src/app/node_modules/express/lib/router/index.js:346:12)
in the app
when trying to copy the GitHub call with curl the response of cap rover is {"status":1106,"description":"Auth token corrupted","data":{}}
sooo.... any idea how to "rebuild" the auth token?
from caprover.
@githubsaturn okay now it's getting strange,
I inserted the hook [...]90LWFpaW52ZXN0LXdlYnNpdGUtcHJlZmVjdC1hZ2VudCIsIm5hbWVzcGFjZSI6ImNhcHRhaW4ifSwiaWF0IjoxNzEyMzE4NzI0fQ.2CWVhzoR-Uzc5wWS4tnpC8GS4COVX0N5YMbmtwd_sT4
into GitHub. this is saved in the GitHub web hook.
BUT
the actual url/token sent by GitHub is
[...]90LWFpa
is this actually a GitHub error :o ? or a size limit by GitHub web hooks?
from caprover.
Damn, it looks like it's really a GitHub bug, as the web hook is cut off after 255 characters!
https://support.github.com/ticket/personal/0/2834287
from caprover.
Related Issues (20)
- [Deployment Issue] Deploy from github using image doesn't work. HOT 2
- How to update the certificate of my self hosted registry? HOT 1
- Net Core 8.0 github actions deploy HOT 1
- Deployment Issue: SourceGuardian PHP Extension on One-Click App HOT 7
- [Deployment Issue] persistent storage not available during deployment HOT 1
- Caprover does not clean up registry HOT 1
- [Deployment Issue] React App Refresh Results in 404 Error Despite Nginx Configuration Modifications HOT 4
- Problem renewing the ssl certificate from caprover HOT 2
- [Question] Set source directory HOT 3
- [Question] Access CapRover dashboard through a secure connection HOT 4
- [Deployment Issue] 'Captain-definition file does not exist' after updating repo structure HOT 4
- Invalid credentials and Apps were incorrupted. HOT 1
- [Question] Can you use network_mode with CapRover HOT 1
- [Question] Is it possible to share captain overlay network between instances without joining swarm? HOT 1
- It is possible to config all in one nextcloud in caprover?
- HELP! CapRover (and all apps) send Error 521 after reboot HOT 1
- "caprover deploy -t ./deploy.tar" not working HOT 3
- Webhook Token too long for Github HOT 6
- Something bad happened while retrieving * app build logs. Too many wrong passwords... Wait for 30 seconds and retry.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from caprover.