micro / services

Real World Micro Services
Apache License 2.0
1.26k stars 138 forks source link

User panic #356

Closed asim closed 2 years ago

asim commented 2 years ago
{
   "category": "panic",
   "action": "/user/ReadSession",
   "metadata": {
      "error": "{\"Id\":\"user\",\"Code\":500,\"Detail\":\"panic recovered: reflect.Set: value of type float64 is not assignable to type string\",\"Status\":\"Internal Server Error\"}"
   }
}
domwong commented 2 years ago

This is caused by users sending the wrong format for requests. Have added some defensive code to make sure we don't bubble up the panic to the user. https://github.com/m3o/backend/pull/514