Skip to content
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

Problems in API Request on request url with encoded characters #12715

Open
rperello opened this issue Jan 30, 2018 · 0 comments
Open

Problems in API Request on request url with encoded characters #12715

rperello opened this issue Jan 30, 2018 · 0 comments
Labels
question to-validate Old issues pending validation

Comments

@rperello
Copy link

rperello commented Jan 30, 2018

I'm using the frappe-docker found in github
I did introduced some Customer data via Dashboard. Some of the customers have the name with spanish accents.

Then i tried to request the API for the data of the customer with accent in name /api/resource/Customer/{customerName} customerName is Cafeter%C3%ADa%20Rigoberto%20S.L. (uri encoded)

The server responses with 500 http code and some text identifing the error.

The server console shows:

{my_ip} - - [30/Jan/2018 13:56:44] "GET /api/resource/Customer/Cafeter%C3%ADa%20Rigoberto%20S.L. HTTP/1.1" 500 -
13:56:44 web.1 | INFO:werkzeug:{my_ip} - - [30/Jan/2018 13:56:44] "GET /api/resource/Customer/Cafeter%C3%ADa%20Rigoberto%20S.L. HTTP/1.1" 500 -
13:56:44 web.1 | Traceback (most recent call last):
13:56:44 web.1 | File "/home/frappe/frappe-bench/apps/frappe/frappe/middlewares.py", line 15, in call
13:56:44 web.1 | return super(StaticDataMiddleware, self).call(environ, start_response)
13:56:44 web.1 | File "/home/frappe/frappe-bench/env/lib/python2.7/site-packages/werkzeug/wsgi.py", line 761, in call
13:56:44 web.1 | if path.startswith(search_path):
13:56:44 web.1 | UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 30: ordinal not in range(128)

What can i do?

@ankush ankush added the to-validate Old issues pending validation label Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question to-validate Old issues pending validation
Projects
None yet
Development

No branches or pull requests

3 participants