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

fix(javascript): encode query parameters #973

Merged
merged 2 commits into from
Aug 30, 2022
Merged

Conversation

shortcuts
Copy link
Member

@shortcuts shortcuts commented Aug 30, 2022

🧭 What and Why

🎟 JIRA Ticket: https://algolia.atlassian.net/browse/APIC-629

Changes included:

Reported by the Predict team

The query parameters were serialized but not encoded, I'm not sure when it has been removed since this piece of code comes from the current implementation.

It seems that on the Search API side, it either does not require the parameters to be encoded, or silently fails. Either way, it should now behave like in the current JavaScript client.

echoRequester: use same encoding/decoding than client

🧪 Test

search requests work:

  • yarn docker playground javascript search

predict requests work:

  • set predict hack month creds in .env
  • yarn docker playground javascript predict

@netlify
Copy link

netlify bot commented Aug 30, 2022

Deploy Preview for api-clients-automation canceled.

Name Link
🔨 Latest commit fff639f
🔍 Latest deploy log https://app.netlify.com/sites/api-clients-automation/deploys/630de7fd39d0610008a1427e

@algolia-bot
Copy link
Collaborator

algolia-bot commented Aug 30, 2022

✗ The generated branch has been deleted.

If the PR has been merged, you can check the generated code on the main branch.
You can still access the code generated on main via this commit.

@shortcuts shortcuts enabled auto-merge (squash) August 30, 2022 10:36
@shortcuts shortcuts merged commit 0df4fb2 into main Aug 30, 2022
@shortcuts shortcuts deleted the fix/javascript-qp-encoding branch August 30, 2022 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants