Skip to content

Updating a record throws an exception #86

@stzahi

Description

@stzahi

Using
Elsf v2.14.4
Forrest v2.14.1
~
Running from within a command, that's why the trace is short.

Omniphx\Forrest\Exceptions\SalesforceException 

  [
    {
        "errorCode": "METHOD_NOT_ALLOWED",
        "message": "HTTP Method 'PATCH' not allowed. Allowed are HEAD,GET,POST"
    }
]

at vendor/omniphx/forrest/src/Omniphx/Forrest/Client.php:857
    853▕         } elseif ($ex->hasResponse()) {
    854▕             $error = json_decode($ex->getResponse()->getBody()->getContents(), true);
    855▕             $ex->getResponse()->getBody()->rewind();
    856▕             $jsonError = json_encode($error,JSON_PRETTY_PRINT);
  ➜ 857▕             throw new SalesforceException($jsonError, $ex);
    858▕         } else {
    859▕             throw new SalesforceException(sprintf('Invalid request: %s', $ex->getMessage()), $ex);
    860▕         }
    861▕     }

New project, new Salesforce, can't find out why 😩

Thanks a lot :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions