I'm creating a script in .js that will store the logs that arrive at the railway.

I'm creating a script in .js that will store the logs that arrive at the railway. I need it to work but it gives me this error even though the information is correct, what can I do? Error updating logs: Error: Railway API response error: Bad Request
No description
16 Replies
Percy
Percy2mo ago
Project ID: df87e3c8-6804-4c39-b4bb-2668be7e7dcc
João Victor
João VictorOP2mo ago
df87e3c8-6804-4c39-b4bb-2668be7e7dcc
BillyDotWS
BillyDotWS2mo ago
can you share more about the response code you're getting? And the endpoint you're trying to target?
João Victor
João VictorOP2mo ago
https://backboard.railway.app/graphql/v2 I'm trying to get some information that is being sent to logs in my project, and I want to get this information in real time and store it.
Brody
Brody2mo ago
please provide the code you are using
João Victor
João VictorOP2mo ago
I have now removed my token
Brody
Brody2mo ago
So why exactly do you need to get the logs of that deployment?
João Victor
João VictorOP2mo ago
Because I'm making a script that I can't send here because it's from a company, and this script takes the information from the webhook and sends it to an interface that I created.
Brody
Brody2mo ago
okay but I'm not sure what that has to do with logs this feels like an XY problem
João Victor
João VictorOP2mo ago
I need to get the information in the logs that I am sending to your website with the meta API, and I need to search for this information and get the fields that I need. And put it in my interface.
Brody
Brody2mo ago
again, not sure what that has to do with logs
BillyDotWS
BillyDotWS2mo ago
this sounds like something that should go to a reporting api/db rather than be scraped with logs
João Victor
João VictorOP2mo ago
How can I make this pull right into the database?
root
root2mo ago
I think the problem with your request is that you need to set Accept: application/json instead of Content-Type: application/json
Brody
Brody2mo ago
we can be better than this, let's try to help the user with the root issue, not solve their XY problem
Want results from more Discord servers?
Add your server