-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
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
GetObject return Invalid header syntax error #322
Comments
I'm getting the same error. This is the crash:
Here is the response from feed:
And this is $response->getBody() from phrets/src/Parsers/GetObject/Multiple.php
$boundary value is So it seems some of the $part s cannot be parsed. Here is part that parseResponse can't parse: https://drive.google.com/file/d/1KaIEL__NPNiy4-IvnY1SgVoLF9-cF358/view?usp=sharing And this is the full body before this library removes boundary and cleans up any preamble/epilogue: https://drive.google.com/file/d/1KBSlejFsV7dTDMR-MLSZlCFbFahHRbRu/view?usp=sharing @troydavisson is there anything else I can provide to assist with this? |
Update: I think I know what's going on. When "Description:" value has line break and is in multiline like the example I provided above:
The code fails to parse. I tried removing the value and it worked. I added the following code to troydavisson/phrets/src/Parsers/GetObject/Multiple.php line 39
I'll open a PR shortly. |
@troydavisson The PR is up if you are okay with the change |
In laravel
It working fine on some mls but some mls return error
Invalid header syntax
$photos = $rets->GetObject("Property", "Photo",'S6673582);
The text was updated successfully, but these errors were encountered: