Skip to content

Issue with Sending Numeric Values via POST #1194

@quwest

Description

@quwest

Have you checked our README?

  • I have checked the README

Have you followed our Troubleshooting?

  • I have followed your Troubleshooting

Is there already an issue for your problem?

  • I have checked older issues, open and closed

Have you checked the discussions?

  • I have read the Discussions

Environment

- FlareSolverr version: latest
- Last working FlareSolverr version: latest
- Operating system: MacOs
- Are you using Docker: [yes/no] yes
- FlareSolverr User-Agent (see log traces or / endpoint):
- Are you using a VPN: [yes/no] no
- Are you using a Proxy: [yes/no] no
- Are you using Captcha Solver: [yes/no] no
- If using captcha solver, which one:
- URL to test this issue: https://core-api.prod.blur.io/v1/orders/format

Description

Endpoint "https://core-api.prod.blur.io/v1/orders/format" requires sending one value as an Integer (feeRate in This Example)

{
  "marketplace": "BLUR",
  "orders": [
    {
      "price": {
        "amount": "0.94",
        "unit": "ETH"
      },
      "tokenId": "2041",
      "feeRate": 50,
      "contractAddress": "0xfdf5acd92840e796955736b1bb9cc832740744ba",
      "expirationTime": "2024-05-22T10:11:05.699Z"
    }
  ]
}

However, the API does not support this due to the use of application/x-www-form-urlencoded. I receive the following response:

{'statusCode': 400, 'message': ['orders.0.feeRate must be a number conforming to the specified constraints'], 'error': 'Bad Request'}

data sent:
marketplace=BLUR&orders%5B0%5D%5Bprice%5D%5Bamount%5D=0.94&orders%5B0%5D%5Bprice%5D%5Bunit%5D=ETH&orders%5B0%5D%5BtokenId%5D=2041&orders%5B0%5D%5BfeeRate%5D=50&orders%5B0%5D%5BcontractAddress%5D=0xfdf5acd92840e796955736b1bb9cc832740744ba&orders%5B0%5D%5BexpirationTime%5D=2024-05-22T12%3A08%3A12.975911Z

Logged Error Messages

.

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy