mirumee / mirumee/saleor-app-framework-python

Connecting to Saleor – Invalid Token Error

Open
#16 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
61
Forks
24
PR merge metrics
No merged PRs in 30d

Description

For three days now I'm trying to connect this framework with saleor-platform. I constantly getting response from GraphQL that token is invalid.

The only way to install this app for me is to run install_app on saleor platform – it always fails on creating webhooks, but then I can click retry on the Dashboard and then it works. However trying to /products/ on complex app always fails with the same problem as creating webhooks – saleor responds that token is invalid. The same happends if I try to validate token on GrapQL Playground.

This token was generated a minute ago and not working.

What am I doing wrong? It seems like saleor-platform and this saleor-app-framework-python not working toghether.

When I try to install_app

on saleor-platform:

requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: http://{IP}:5000/configuration/install

on saleor-app-framework-python

INFO:     13.53.139.222:44186 - "GET /configuration/manifest/ HTTP/1.1" 307 Temporary Redirect
INFO:     13.53.139.222:44186 - "GET /configuration/manifest HTTP/1.1" 200 OK
INFO:     13.53.139.222:44190 - "GET /configuration/manifest/ HTTP/1.1" 307 Temporary Redirect
INFO:     13.53.139.222:44190 - "GET /configuration/manifest HTTP/1.1" 200 OK
Error when executing a GraphQL call to Saleor
Unable to finish installation of app for 13.53.139.222:8000.
INFO:     13.53.139.222:44192 - "POST /configuration/install HTTP/1.1" 403 Forbidden

Trying to create_app

on saleor-platform:

requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: http://{IP}:5000/configuration/install

on saleor-app-framework-python:

INFO:     13.53.139.222:44202 - "POST /configuration/install/ HTTP/1.1" 307 Temporary Redirect
Error when executing a GraphQL call to Saleor
Unable to finish installation of app for 13.53.139.222:8000.
INFO:     13.53.139.222:44202 - "POST /configuration/install HTTP/1.1" 403 Forbidden

This is what I get on /products on saleor-app-framework-python side after install_app and retry on Dashboard:

Provided X-SALEOR-DOMAIN and X-SALEOR-TOKEN are incorrect.
INFO:     192.168.0.11:53856 - "GET /products/ HTTP/1.1" 400 Bad Request

It there anything I can do to fix this?

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 failure through /configuration/install and /products, then inspect the GraphQL requests and the X-SALEOR-DOMAIN and X-SALEOR-TOKEN values reported in the issue. Compare the framework's installation flow with the Saleor platform response and GraphQL Playground behavior. Done means identifying the token or integration mismatch and confirming that installation and product requests succeed.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, backend
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.