raygdev / repair-order-tracker

A repair order tracker for automotive technicians
https://repair-order-tracker.vercel.app
3 stars 1 forks source link

Production breaks using axios #60

Open raygdev opened 4 hours ago

raygdev commented 4 hours ago

Found axios doesn't report the status text in production and causes login to fail. Checking if the status is less than 400 works, but fails when loading the dashboard route for repairs.

raygdev commented 4 hours ago

Status text is ambiguous and may not be present in the response. Likely need to use res.status >= 400 to make sure that it responds appropriately instead of throwing a 200 response as an error.