V
V
VoRoN19992019-01-30 22:54:25
Google Chrome
VoRoN1999, 2019-01-30 22:54:25

Why does a 500 error occur?

Goodnight. There is an api written in yii2, I didn’t write it, but I know that there is an error there.
Only POST request in chrome browser gives 500 error, but in Firefox everything works fine. Is there a setting that can be turned off in chrome? Or how to fix it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Timofeev, 2019-01-31
@VoRoN1999

only POST request in chrome browser gives 500 error, but in firefox everything works fine.

the first contradicts the second. Yii on the server, he doesn't care... which browser sends the request. So if the error appears in a certain browser, front is to blame.
This does not mean that there are no problems in the API. This means that you definitely have them at the front. Since actions on the front should not lead to different behaviors in different browsers. And even more so, yii has nothing to do with it.

D
Dimonchik, 2019-01-30
@dimonchik2013

see
https://developers.google.com/web/tools/chrome-dev...
and the same in FF

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question