Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Error when submitting data to tiki ingest #122

Closed
1 task
Tracked by #2 ...
MiroBenicio opened this issue Sep 19, 2023 · 3 comments
Closed
1 task
Tracked by #2 ...

Error when submitting data to tiki ingest #122

MiroBenicio opened this issue Sep 19, 2023 · 3 comments
Assignees
Labels
bug Something isn't working.
Milestone

Comments

@MiroBenicio
Copy link
Contributor

Reason

The Tiki Ingest is returning a JWT error

Description

When submitting the order data to tiki ingest, the endpoint is returning an error with the JWT token authentication

The query used to generate the acess token:
grant_type=client_credentials&client_id=<publisher_id>&client_secret=&scope=storage

The token is generated successful, but the Tiki endpoint returns the error:

 {
  "message": "Invalid JWT",
  "detail": "cannot deserialize claims: invalid type: string \"storage.l0.mytiki.com\", expected a sequence at line 1 column 137"
} 

Success Criteria

  • The tiki ingest receives the order data successfuly

Additional Information

No response

@MiroBenicio MiroBenicio added the fix Iterations on existing features or infrastructure. label Sep 19, 2023
@MiroBenicio MiroBenicio added this to the MVP milestone Sep 19, 2023
@MiroBenicio MiroBenicio self-assigned this Sep 19, 2023
@MiroBenicio
Copy link
Contributor Author

@mike-audi

@timoguin timoguin added bug Something isn't working. and removed fix Iterations on existing features or infrastructure. labels Sep 19, 2023
@timoguin
Copy link

Pasting what @mike-audi shared in Discord:

got it. i know what the issue is (it's in the rust jwt stuff). it's expecting the audience to be a list not a string.

it's hacky, but a workaround for now is to just request multiple scopes.

request the index scope in addition to the storage scope and it should work

This is a bug in the Rust JWT code that should be fixed.

@ricardobrg
Copy link
Collaborator

solved

@ricardobrg ricardobrg closed this as not planned Won't fix, can't repro, duplicate, stale Jan 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working.
Projects
None yet
Development

No branches or pull requests

4 participants