Akhil
Akhil
RRailway
Created by Akhil on 5/31/2024 in #✋|help
Webhook's using Public API
No our developers used it, for testing purpose via a env variable.
39 replies
RRailway
Created by Akhil on 5/31/2024 in #✋|help
Webhook's using Public API
In order to create webhook with Public API. 1. use personal token (even though the project is in a team) 2. the URL, cannot he http://localhost:3000
39 replies
RRailway
Created by Akhil on 5/31/2024 in #✋|help
Webhook's using Public API
no issues, I guess using url to be localhost is getting me the error.
39 replies
RRailway
Created by Akhil on 5/31/2024 in #✋|help
Webhook's using Public API
But, using the public API, I was not able to create webhook using both the teams API token or the Personal Token. Am I missing something here, based on our previous conversation, I was able to create webhooks using personal token, but now I was not able to create using them. Error with team token:
{
"data": null,
"errors": [
{
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
},
"locations": [
{
"column": 26,
"line": 1
}
],
"message": "Not Authorized",
"path": [
"webhookCreate"
]
}
]
}
{
"data": null,
"errors": [
{
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
},
"locations": [
{
"column": 26,
"line": 1
}
],
"message": "Not Authorized",
"path": [
"webhookCreate"
]
}
]
}
The error with personal token.
{
"errors": [
{
"message": "Nice try. Psst, we have a bug bounty! See the Discord",
"locations": [
{
"line": 2,
"column": 5
}
],
"path": [
"webhookCreate"
],
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
}
}
],
"data": null
}
{
"errors": [
{
"message": "Nice try. Psst, we have a bug bounty! See the Discord",
"locations": [
{
"line": 2,
"column": 5
}
],
"path": [
"webhookCreate"
],
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
}
}
],
"data": null
}
39 replies
RRailway
Created by Akhil on 5/31/2024 in #✋|help
Webhook's using Public API
yes
39 replies
RRailway
Created by Akhil on 5/31/2024 in #✋|help
Webhook's using Public API
yes, no use
39 replies
RRailway
Created by Akhil on 5/31/2024 in #✋|help
Webhook's using Public API
Seems like the personal tokens are throwing errors now, but a new error message:
{
"errors": [
{
"message": "Nice try. Psst, we have a bug bounty! See the Discord",
"locations": [
{
"line": 2,
"column": 5
}
],
"path": [
"webhookCreate"
],
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
}
}
],
"data": null
}
{
"errors": [
{
"message": "Nice try. Psst, we have a bug bounty! See the Discord",
"locations": [
{
"line": 2,
"column": 5
}
],
"path": [
"webhookCreate"
],
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
}
}
],
"data": null
}
39 replies
RRailway
Created by Akhil on 5/31/2024 in #✋|help
Webhook's using Public API
Nice, I was able to replicate it and create webhook. But don't you think it is not the desired way?
39 replies
RRailway
Created by Akhil on 5/31/2024 in #✋|help
Webhook's using Public API
Let me create a new token and project and then check with it.
39 replies
RRailway
Created by Akhil on 5/31/2024 in #✋|help
Webhook's using Public API
Same, error
39 replies
RRailway
Created by Akhil on 5/31/2024 in #✋|help
Webhook's using Public API
Even tried creating a project token and used it for creating webhook, but facing the same issue
39 replies
RRailway
Created by Akhil on 5/31/2024 in #✋|help
Webhook's using Public API
This is the request:
mutation createWebhook {
railway {
webhookCreate(input: {projectId: "19f097bd-c834-48f1-b55e-50123c01f982", url: "https://webhook.site/ba79d712-b3b4-4221-a5d5-3acf9ff296f7"}) {
id
lastStatus
projectId
url
}
}
}
mutation createWebhook {
railway {
webhookCreate(input: {projectId: "19f097bd-c834-48f1-b55e-50123c01f982", url: "https://webhook.site/ba79d712-b3b4-4221-a5d5-3acf9ff296f7"}) {
id
lastStatus
projectId
url
}
}
}
This is the response
{
"data": null,
"errors": [
{
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
},
"locations": [
{
"column": 26,
"line": 1
}
],
"message": "Not Authorized",
"path": [
"webhookCreate"
]
}
]
}
{
"data": null,
"errors": [
{
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
},
"locations": [
{
"column": 26,
"line": 1
}
],
"message": "Not Authorized",
"path": [
"webhookCreate"
]
}
]
}
Just created a new empty project, and new API token and tested it out
39 replies
RRailway
Created by Akhil on 5/31/2024 in #✋|help
Webhook's using Public API
sure
39 replies
RRailway
Created by Akhil on 5/31/2024 in #✋|help
Webhook's using Public API
I'm the admin
39 replies
RRailway
Created by Akhil on 5/31/2024 in #✋|help
Webhook's using Public API
when, doing it, I'm getting auth errors
39 replies
RRailway
Created by Akhil on 5/31/2024 in #✋|help
Webhook's using Public API
No description
39 replies
RRailway
Created by Akhil on 5/31/2024 in #✋|help
Webhook's using Public API
I can't find it
39 replies
RRailway
Created by Akhil on 5/31/2024 in #✋|help
Webhook's using Public API
can I know, the URL for it
39 replies
RRailway
Created by Akhil on 5/31/2024 in #✋|help
Webhook's using Public API
It is working in personal projects but not in team
39 replies
RRailway
Created by Akhil on 5/31/2024 in #✋|help
Webhook's using Public API
hey @Brody , I'm created a team and created another project within it and would like to add webhook to it. All other queries like create project, redploy or template deploy are working with my api but not the webhook, any idea what's getting wrong? Also, I need to create the API token in my personal account right? I was not able to create any api token in my team workspace
39 replies