Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

wcapi.get('orders') returns 403 #42

Closed
@LucSpan

Description

@LucSpan

I connect to my WooCommerce webshop through the WooCommerce REST API Python wrapper,

I.e,

from woocommerce import APIwcapi = API(    url="https://mywebshop.whatever",    consumer_key="ck_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",    consumer_secret="cs_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",    wp_api=True,    version="wc/v1")

API has read/write access.

All worked fine for months up to yesterday.


Problem

Since yesterdaylatest_order = wcapi.get('orders').json() returns aJSONDecodeError: Expecting value. Also,wcapi.get('orders') returns a<Response [403]>.

I don't know what's causing this all of a sudden and I'm not sure how to solve it either.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp