Unexpected error from Railway Proxy
serleo98
HOBBYOP

2 years ago

i have my app deployed, when try to send any request by swagger any response from any endpoint return this msg: Unexpected error from Railway Proxy

Closed

32 Replies

serleo98
HOBBYOP

2 years ago

cbfab0cc-7fc8-413e-b097-4dedc90d4e49


2 years ago

can you send a link to your docs so i could see this error for myself?



serleo98
HOBBYOP

2 years ago

this is the swagger


serleo98
HOBBYOP

2 years ago

when you try to create new user, the endpoint return this msg


serleo98
HOBBYOP

2 years ago

same happens with other


2 years ago

okay ill try that now


2 years ago

this doesnt seem like a message that railway is returning, looks like something your code is returning


serleo98
HOBBYOP

2 years ago

I understand, in that case I will check the code, maybe someone in the team modified something


serleo98
HOBBYOP

2 years ago

thanks for the help


2 years ago

no problem, let me know if you need any more help


2 years ago

but as it stands with just that as the error, there wouldn't be all that much i can help with


serleo98
HOBBYOP

2 years ago

you were right, it was a problem of our code, it was a wrong error catch, we were able to fix it, thank you very much!


2 years ago

no problem!


2 years ago

though I'm curious and if you don't mind telling, what did the "railway proxy" mean in that message?


serleo98
HOBBYOP

2 years ago

I'm not sure why the host returned that message, but when we tested locally our code returned a 403 because our identity provider returned an error that we were not taking into account, so the default error was a 403.


serleo98
HOBBYOP

2 years ago

can it be a default message when a response has no body? is a good question.


2 years ago

not sure, maybe do a text search for that message in your project code? because if a response has no body railway is not going to be adding that message, I can promise you that much


serleo98
HOBBYOP

2 years ago

is a possibility, but when I search for that message it does not exist in our code.


serleo98
HOBBYOP

2 years ago

1261140691581407365


serleo98
HOBBYOP

2 years ago

I think I have another case


serleo98
HOBBYOP

2 years ago

1261141011413864448


serleo98
HOBBYOP

2 years ago

with status 201


serleo98
HOBBYOP

2 years ago

but in this case the endpoint should be return response


serleo98
HOBBYOP

2 years ago

I don't know what to say, the message is very curious, but we will try to handle it from our code.


2 years ago

how are you sure that you where sending a 403 with an empty body?


serleo98
HOBBYOP

2 years ago

as far as we can see yes, this is the error replicated from the project running local


serleo98
HOBBYOP

2 years ago

1261142738284318842


serleo98
HOBBYOP

2 years ago

with only header


2 years ago

okay, makes sense, I will try to reproduce


serleo98
HOBBYOP

2 years ago

our project is made with java spring and for the security part we are using spring security so when it does not pass any validation of the request, it breaks in the security filter, returning only status 403.


2 years ago

i wasnt able to reproduce that message, meaning somehow your app is sending it

1261158722286391376


Welcome!

Sign in to your Railway account to join the conversation.

Loading...