Git Product home page Git Product logo

Comments (4)

githubsaturn avatar githubsaturn commented on June 22, 2024

I just created a test app and it works fine. Probably your URL is malformed (copy paste mistake)

Here is the test app:

  1. login to
    https://captain.server.demo.caprover.com
    password: captain42

  2. go to the deployment tab of webhook-test app

  3. 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.

JustinGuese avatar JustinGuese commented on June 22, 2024

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.

JustinGuese avatar JustinGuese commented on June 22, 2024

@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.

JustinGuese avatar JustinGuese commented on June 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.