gearbox-solutions / eloquent-filemaker

A Model extension and Eloquent driver for Laravel connecting to FileMaker through the Data API
https://gearboxgo.com
MIT License
56 stars 16 forks source link

Fix generic connection error #58

Closed andrez89 closed 1 year ago

andrez89 commented 1 year ago

The $response variable is not checked before method getBody() is called It happens to me when working on a local environment without an internet connection to the server. The $response variable is null and it crashes without generating a specific exception.

This small fix allows the program to continue and finally returns a ConnectionException

lgebing commented 1 year ago

Would appreciate it if this could get merged. Have been running into this error in my production environment and can't quite figure out the source, so getting something other than Call to a member function getBody() on null would be helpful.

Smef commented 1 year ago

Released in v1.1.3.