woocommerce / woocommerce/wc-api-python

response 404 or 500 when getting products/sales from woocommerce using python

Open
#95 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

Hi
I'm trying to get product and sales data from woocommerce using python

here is my code
`import json
from woocommerce import API

wcapi = API(
url="https://abc",
consumer_key="ck_abc",
consumer_secret="cs_abc",
version="wc/v3",
timeout=50
)

response = wcapi.get('products', params={'per_page': 20})
print(response)`

but i get response 404 or 500
may i know what is the problem?

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

The report only provides a Python API constructor and a get('products') call; no repository file, test, request URL, response body, or environment details are named. Start by tracing the API entry point used by wcapi.get and reproduce the request with the provided configuration. Done requires identifying whether the wrapper or the WooCommerce endpoint produces the 404 or 500 response.

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.