MarketSquare / MarketSquare/robotframework-requests

Words pt-br with accents is causing 400 Bad Request on the new Post/Put On Session

Open
#334 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Python
Stars
512
Forks
283
PR merge metrics
No merged PRs in 30d

Description

I'm migrating some tests with Get/Post/Put Requests to the new Get/Put/Post On Session, but I'm having difficulty with strings with accents (pt-br). See below in the image. What should I do?

image

Python 3.9.0
requests 2.25.1
requests-oauthlib 1.3.0
robotframework 4.0.2
robotframework-pythonlibcore 2.1.0
robotframework-requests 0.9.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing a new Post/Put On Session request containing accented pt-BR text with the listed Python, requests, Robot Framework, and robotframework-requests versions. Compare it with the older request keywords and identify why the session request returns 400; done means accented strings are accepted without the bad request.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.