woocommerce / woocommerce/wc-api-python

Unable to send request due to User-Agent

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

Nobody has claimed this yet.

Dominant language
Python
Stars
216
Forks
108
Avg merge
6h 34m
Merged PRs (30d)
1

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

Contributor guide

No contributing guide indexed for this repository

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 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.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.