Skip to content

404s are not handled correctly by the client. #74

Description

@patrickyan

The only thing I’m doing is \Balanced\Debit::get($debit_uri);. Everything works perfectly on my local machine through MAMP.

An error occurred in /var/app/current/extensions/balanced/lib/balanced/balanced/src/Balanced/Resource.php around line 27

22 {
23 if (property_exists($response->body, 'category_code') &&
24 array_key_exists($response->body->category_code, Error::$codes))
25 $error = new Error::$codes[$response->body->category_code]($response);
26 else
27 $error = new HTTPError($response);
28 return $error;
29 }
30
31 public static function getClient()

Backtrace
[:0]
    Balanced\Resource::convertError();
[/var/app/current/extensions/balanced/lib/bninja/restful/src/RESTful/Client.php:69]
    call_user_func();
[/var/app/current/extensions/balanced/lib/bninja/restful/src/RESTful/Client.php:24]
    RESTful\Client->_op();
[/var/app/current/extensions/balanced/lib/bninja/restful/src/RESTful/Resource.php:158]
    RESTful\Client->get();
[/var/app/current/workspace/events/event.reservations_cron_expired.php:145]
    RESTful\Resource::get();

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions