Giter VIP home page Giter VIP logo

Comments (6)

githubsaturn avatar githubsaturn commented on July 3, 2024 1

Ahhh I was looking at a test instance. I just tried a production one and it failed.... :(
I don't know when they changed this as it used to work in the past... 🤦

I'll see if we can have a workaround here. I have a few options and I'll update this thread once I have more info.

from caprover.

JustinGuese avatar JustinGuese commented on July 3, 2024

is there a way to reduce the size of the token= param in the webhook?

from caprover.

githubsaturn avatar githubsaturn commented on July 3, 2024

I just tried the webhook on github and it doesn't have the length limitation. What issue are you facing?

image
image

from caprover.

JustinGuese avatar JustinGuese commented on July 3, 2024

and your request url is longer than 255 characters?
bc mine gets cut off after 255 characters and cap rover returns the before mentioned 502 "jwt corrupted"

image

how is this jwt generated? it has nothing to do with the private key I'm pasting into the GitHub repo section, right?

from caprover.

JustinGuese avatar JustinGuese commented on July 3, 2024

at least a yay for replication :p thanks! maybe the token can be shortened as it's only used by cap rover anyways? or hashed again?

yeah I agree, and it worked before, but seems like they updated that requirement... kind of strange though as you can fill in a longer webhook in the UI. I have opened a ticket, but no response so far

from caprover.

githubsaturn avatar githubsaturn commented on July 3, 2024

Yea this is surely a bug on their end.

Token shortening requires some non trivial data store schema design. But I just found a temporary solution for this!!

  • Create a new app on your CapRover instance (just a empty app)
  • Enable HTTPS for the app
  • Go to the HTTP Settings of the app and find this line:
set $upstream http://<%-s.localDomain%>:<%-s.containerHttpPort%>;
  • Right below this line, add this block

        location /mywebhookforapp1 {
            proxy_pass <YOUR WEBHOOK URL>;
           # the semicolon at the end of the URL is important
        }

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.