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: explain() always returning an error #506

Merged
merged 2 commits into from
Nov 18, 2023

Conversation

laurenceisla
Copy link
Contributor

What kind of change does this PR introduce?

Bug fix. Closes #504

What is the current behavior?

Sends "undefined" media type when requesting explain plan, making the explain() method fail.

What is the new behavior?

Sends "application/json" as media type.

Additional context

Tests weren't failing because they were using PostgREST v11.0.0 instead of v11.2.2

@laurenceisla laurenceisla marked this pull request as ready for review November 17, 2023 20:00
It sends `for="application/json"` as media type by default, instead of `for="undefined"`.
@steve-chavez steve-chavez merged commit 5e7dbdc into supabase:master Nov 18, 2023
1 check passed
Copy link

🎉 This PR is included in version 1.8.6 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.explain() method always return error
2 participants