MarcinOrlowski / laravel-api-response-builder

Builds nice, normalized and easy to consume REST JSON responses for Laravel powered APIs.
MIT License
721 stars 79 forks source link

Undefined array key "handler" #230

Open devaygun opened 2 years ago

devaygun commented 2 years ago

What is wrong?

Occassionally the exceptions are not fully rendered as the $handler = new $cfg[ RB::KEY_HANDLER ](); fails to work, as the array key "handler" is undefined?

This might be loosely linked to this existing issue: https://github.com/MarcinOrlowski/laravel-api-response-builder/issues/226

Steps to reproduce the behavior:

  1. Follow the exception handler helper setup instructions
  2. Occassionally for an unknown reason you will start to see receive: Undefined arrray key "handler"

Expected behavior

The exception should render.

Environment

Notes

Any additional information that may be helpful diagnosing the problem.

devaygun commented 2 years ago

@MarcinOrlowski sorry to bother you with this but do you have any insights?

MarcinOrlowski commented 1 year ago

@denizaygun Can you please come with any steps to reproduce? "Occasionally" is pretty counter-precise and barely useful for any debugging.