Unable to send request due to User-Agent

Open
#67 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by reproducing the 403 with package version 3.0.0 against the reported WordPress 5.7.2 and WooCommerce 5.3.0 setup, then compare the package request with the successful Postman request, including the manually supplied User-Agent. Done means identifying the request difference that causes the 403 and confirming that the package can send the same request successfully.

Written by the indexing model from the issue text.

Description

I can't send requests to the api using the package, I get 403 HTTP status with this error message
`

<title>403 Forbidden</title>

Forbidden

You don't have permission to access this resource.

`

I use the latest package version (3.0.0), I understand that this issue has been solved before in https://github.com/woocommerce/wc-api-python/issues/56, but apparently there is still a problem, because when I send a request using postman to my website it works, but when I use the package it doesn't, even if I set the User-Agent manually.

Wordpress version:5.7.2
Woocommerce version: 5.3.0

Dominant language
Python
Stars
216
Forks
108
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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.

More from woocommerce/wc-api-python

All issues in woocommerce/wc-api-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.