Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Store REST API returns invalid digest #2615

Closed
kaichaosun opened this issue Apr 22, 2024 · 13 comments
Closed

bug: Store REST API returns invalid digest #2615

kaichaosun opened this issue Apr 22, 2024 · 13 comments
Assignees
Labels
bug Something isn't working effort/hours Estimated to be completed in a few hours

Comments

@kaichaosun kaichaosun added the bug Something isn't working label Apr 22, 2024
@kaichaosun
Copy link
Contributor Author

@gabrielmer gabrielmer moved this to Priority in Waku Apr 23, 2024
@Ivansete-status
Copy link
Collaborator

Very good morning @kaichaosun !
Looking at the issue more carefully I have the impression that this is the expected behaviour.

The following page is super handy to know how to properly deal with REST service ( kudos to @NagyZoltanPeter ! )

https://waku-org.github.io/waku-rest-api/#get-/store/v1/messages

From there, you will see that all the store GET params should be url-encoded

Let me know if that helps and we can close that one :)

@kaichaosun
Copy link
Contributor Author

kaichaosun commented May 16, 2024

@Ivansete-status
Copy link
Collaborator

@kaichaosun
Copy link
Contributor Author

It's returned in json of first request, https://github.com/threeproto/ferry-chat/blob/main/src/App.tsx#L27

@gabrielmer gabrielmer self-assigned this Jun 4, 2024
@gabrielmer gabrielmer added the effort/hours Estimated to be completed in a few hours label Jun 4, 2024
@gabrielmer gabrielmer moved this from Priority to In Progress in Waku Jun 4, 2024
@gabrielmer
Copy link
Contributor

Heey @kaichaosun
Can you please try to reproduce it with the following image? quay.io/wakuorg/nwaku-pr:2775-rln-v1
We might have a fix for it.

Otherwise, can you please write step by step how to reproduce the error? Preferably, also with inputs that don't give error so we can compare.

@kaichaosun
Copy link
Contributor Author

@gabrielmer will do, thanks for the updates.

@gabrielmer
Copy link
Contributor

gabrielmer commented Jun 18, 2024

@kaichaosun were you able to test the version with my fix?

@gabrielmer gabrielmer moved this from In Progress to Blocked in Waku Jun 18, 2024
@kaichaosun
Copy link
Contributor Author

kaichaosun commented Jun 25, 2024

@gabrielmer I didn't got chance to setup nwaku for the tests, feel free to close it if there is no more work to do, will open a new one if new issue pop up.

@gabrielmer
Copy link
Contributor

@gabrielmer I didn't got chance to setup nwaku for the tests, feel free to close it if there is no more work to do, will open a new one if new issue pop up.

The issue is that I didn't understand how to reproduce the bug.

I think that my PR solves it but I can't merge it if I don't know if it actually works. And at the same time, we can't close this without having fixed anything or found what's going on.

So whenever you have a chance please try it, or just provide detailed steps of how to reproduce it and I do it myself.

@kaichaosun
Copy link
Contributor Author

The test scenario can be reproduced with local REST API store query for multipage results, check an example here https://github.com/threeproto/ferry-chat/blob/main/src/App.tsx#L130.

@gabrielmer
Copy link
Contributor

The test scenario can be reproduced with local REST API store query for multipage results, check an example here https://github.com/threeproto/ferry-chat/blob/main/src/App.tsx#L130.

Got it, thank you! Could you please provide detailed step by step instructions on how to reproduce it?

I get the main idea, but still need the exact details of how you got into the issue. Which API calls, in which order and with which inputs.

@gabrielmer
Copy link
Contributor

Closing this issue as we lack enough information, if reproduced please reopen detailing all the steps on how it is triggered

@github-project-automation github-project-automation bot moved this from Blocked to Done in Waku Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working effort/hours Estimated to be completed in a few hours
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants