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
UnicodeDecodeError when receiving flag_info info error #26
Comments
A try/catch is a last resort, and would mask the underlying problem. If you can provide the exact circumstance (ie. extract of HTTP request) which cause it, we can put in a proper solution. Thanks! |
I couldn't be able to store the HTTP request in the logs, but I have enabled it from now, to store in case I receive again the error. I'll keep you up to date. Thanks! |
Closing as not enough info was provided, and this is old now. |
Hi, I'm having this error in my application using version {
"protection_eligibility": "Ineligible",
"last_name": "Bar",
"txn_id": "25F78140PL237475G",
"receiver_email": "foo@bar.com",
"payment_status": "Completed",
"tax": "0.00",
"residence_country": "BR",
"invoice": "0c85c58f-df5b-baz-bar-foo",
"payer_status": "unverified",
"txn_type": "web_accept",
"handling_amount": "0.00",
"payment_date": "17:00:38 Apr 19, 2015 PDT",
"first_name": "Foo",
"item_name": "Foobar",
"charset": "windows-1252",
"notify_version": "3.8",
"receiver_id": "27L7EUKFFCSPS",
"business": "foo@bar.com",
"payer_id": "W832M3A7B44MU",
"verify_sign": "AaXhtpwght6PEuy-z7LFdf...",
"mc_fee": "3.10",
"mc_currency": "BRL",
"shipping": "0.00",
"payer_email": "foobar@gmail.com",
"payment_type": "instant",
"mc_gross": "39.00",
"ipn_track_id": "f17a",
"quantity": "1"
} And this is the stacktrace:
|
I'm seeing this as well. It looks like a Unicode object ( All assignments of |
@spookylukey Can you open this issue again? I'll try to look into it and fix. |
I'm having the same issue. 1st: UnicodeDecodeError The real error in fact was that PayPal What do you guys think? I can send a PR later. |
Some fields were not covered yet. Issue spookylukey#26
The UnicodeDecodeError should have been addressed in 686382b |
Both issues should now be addressed in 0.2.5 |
Hi all,
First of all thanks to spookylukey (and also dcramer) for this super library. I have recently discovered that sometimes Paypal is returning some unreadable characters in the 'flag_info' field and an UnicodeDecodeException exception is raised in the following line:
self.flag_info += info
of file: django_paypal-0.1.3-py2.7.egg/paypal/standard/models.py
I guess that a try/catch surrounding the line and managing the unicode variable properly should be enough to fix it.
Best regards from Barcelona,
Álvaro Vélez.
The text was updated successfully, but these errors were encountered: