We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Was getting 400 errors when creating relationships, i.e.
$SugarAPI->linkRecords($module,$id,$relationship_link,$related_id);
Found that the configureType() method in /src/Request/Abstracts/AbstractRequest.php (line 240) was setting this option:
$this->setOption(CURLOPT_POST, true);
I believe this option was overriding the application/json content type headers on the request, which was causing the issue.
I resolved this by commenting out the following:
/src/Request/Abstracts/AbstractRequest.php (line 240)
$this->setOption(CURLOPT_POST, true); break;
Hope that helps someone.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Was getting 400 errors when creating relationships, i.e.
$SugarAPI->linkRecords($module,$id,$relationship_link,$related_id);
Found that the configureType() method in /src/Request/Abstracts/AbstractRequest.php (line 240) was setting this option:
$this->setOption(CURLOPT_POST, true);
I believe this option was overriding the application/json content type headers on the request, which was causing the issue.
I resolved this by commenting out the following:
/src/Request/Abstracts/AbstractRequest.php (line 240)
Hope that helps someone.
The text was updated successfully, but these errors were encountered: