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

Prisma Studio not working with Safari 14.0.3 #664

Closed
himatani opened this issue Apr 25, 2021 · 9 comments
Closed

Prisma Studio not working with Safari 14.0.3 #664

himatani opened this issue Apr 25, 2021 · 9 comments
Assignees
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug.
Milestone

Comments

@himatani
Copy link

  1. Prisma version (prisma -v or npx prisma -v):
prisma               : 2.21.2
@prisma/client       : 2.21.2
Current platform     : darwin
Query Engine         : query-engine e421996c87d5f3c8f7eeadd502d4ad402c89464d (at node_modules/prisma/node_modules/@prisma/engines/query-engine-darwin)
Migration Engine     : migration-engine-cli e421996c87d5f3c8f7eeadd502d4ad402c89464d (at node_modules/prisma/node_modules/@prisma/engines/migration-engine-darwin)
Introspection Engine : introspection-core e421996c87d5f3c8f7eeadd502d4ad402c89464d (at node_modules/prisma/node_modules/@prisma/engines/introspection-engine-darwin)
Format Binary        : prisma-fmt e421996c87d5f3c8f7eeadd502d4ad402c89464d (at node_modules/prisma/node_modules/@prisma/engines/prisma-fmt-darwin)
Default Engines Hash : e421996c87d5f3c8f7eeadd502d4ad402c89464d
Studio               : 0.371.0
  1. Logs from Developer Tools Console or Command line, if any:
[Log] Studio version – "0.371.0" (vendor.c4d0f081.js, line 31)

[Error] [getAllCounts] Malformed response for `count` query:

 (2)
{error: null}Objectundefined
	(anonymous関数) (vendor.c4d0f081.js:31:12477)
	B (index.js:1:3088)
	(anonymous関数) (index.js:1:102860)
	asyncFunctionResume
	(anonymous関数)
	promiseReactionJobWithoutPromise
	promiseReactionJob

[Error] [BootstrapStore.init] Studio bootstrap failed (2)
{message: "Malformed response for `count` query:↵↵", stack: undefined}Object{nativeError: {message: "Malformed response for `count` query:↵↵"}}Object
	(anonymous関数) (vendor.c4d0f081.js:31:12477)
	B (index.js:1:3088)
	(anonymous関数) (index.js:1:105612)
	asyncFunctionResume
	(anonymous関数)
	promiseReactionJobWithoutPromise
	promiseReactionJob

[Error] Unhandled Promise Rejection: [object Object]
	(anonymous関数) (index.js:1:105732)
	asyncFunctionResume
	(anonymous関数)
	promiseReactionJobWithoutPromise
	promiseReactionJob
  1. Does the issue persist even after updating to the latest prisma alpha? (npm i -D @prisma/cli@dev)
Does not solved.
  1. Prisma schema (if relevant):
Not applicable. (maybe)
@himatani
Copy link
Author

MacBook Pro (13-inch, M1, 2020)
macOS: Big Sur

@sdnts
Copy link
Contributor

sdnts commented Apr 28, 2021

Hi @himatani, is this only happening on Safari? It's weird that a fetch request like that fails only on Safari 🤔

@sdnts sdnts self-assigned this Apr 28, 2021
@sdnts sdnts added bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. kind/bug A reported bug. labels Apr 28, 2021
@PanMan
Copy link

PanMan commented Apr 29, 2021

I have the same issue, only in Safari, not in Chrome. It's strange, as I would expect it to be a backend issue, not determined by browser, but I get this same error directly when I open Studio in Safari, and not in chrome. Let me know if I can help debug it.

@himatani
Copy link
Author

himatani commented May 1, 2021

Hi @madebysid @PanMan
Yes, only happening on Safari. But I haven't found a way to solve it yet...

@sdnts sdnts added bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. and removed bug/0-unknown Bug is new, does not have information for reproduction or reproduction could not be confirmed. labels May 5, 2021
@sdnts
Copy link
Contributor

sdnts commented May 8, 2021

Hey everyone, can you try out prisma@2.23.0-dev.10 and let me know if this is still broken on there? You can do so by running npm install prisma@dev.

I just tried this and cannot reproduce anymore (although to be fair, I haven't ever seen this on Safari 14.0.3 anyway).

If it is fixed, this dev will make it to the next stable release, at which point I'd recommend updating to the stable version rather than stick to dev versions, since dev versions might occasionally contain unannounced breaking changes.

If not, let me know!

@Alex4386
Copy link

Alex4386 commented May 8, 2021

Unfortunately, I'm currently on Safari 14.1, But same issue still persists.

root@{redacted}:~/{redacted}# yarn prisma -v
yarn run v1.22.10
$ /{redacted}/node_modules/.bin/prisma -v
Environment variables loaded from .env
prisma               : 2.23.0-dev.10
@prisma/client       : 2.22.1
Current platform     : debian-openssl-1.1.x
Query Engine         : query-engine cd459a60adc2f40ba38ed4cb1d6a5885e452c515 (at node_modules/prisma/node_modules/@prisma/engines/query-engine-debian-openssl-1.1.x)
Migration Engine     : migration-engine-cli cd459a60adc2f40ba38ed4cb1d6a5885e452c515 (at node_modules/prisma/node_modules/@prisma/engines/migration-engine-debian-openssl-1.1.x)
Introspection Engine : introspection-core cd459a60adc2f40ba38ed4cb1d6a5885e452c515 (at node_modules/prisma/node_modules/@prisma/engines/introspection-engine-debian-openssl-1.1.x)
Format Binary        : prisma-fmt cd459a60adc2f40ba38ed4cb1d6a5885e452c515 (at node_modules/prisma/node_modules/@prisma/engines/prisma-fmt-debian-openssl-1.1.x)
Default Engines Hash : cd459a60adc2f40ba38ed4cb1d6a5885e452c515
Studio               : 0.383.0
Done in 1.34s.

JavaScript error log provided below:

[Error] [getAllCounts] Malformed response for `count` query:

 (2)
Object
undefined
	(anonymous function) (vendor.f39ffc3f.js:59:13080)
	F (index.a5c79790.js:1:3015)
	(anonymous function) (index.a5c79790.js:1:102787)
	asyncFunctionResume
	(anonymous function)
	promiseReactionJobWithoutPromise
	promiseReactionJob
[Error] [BootstrapStore.init] Studio bootstrap failed (2)
Object
Object
	(anonymous function) (vendor.f39ffc3f.js:59:13080)
	F (index.a5c79790.js:1:3015)
	(anonymous function) (index.a5c79790.js:1:105552)
	asyncFunctionResume
	(anonymous function)
	promiseReactionJobWithoutPromise
	promiseReactionJob

System Information for Troubleshooting:

$ uname -a
Darwin ALEX4386MBP.local 20.4.0 Darwin Kernel Version 20.4.0: Fri Mar  5 01:14:14 PST 2021; root:xnu-7195.101.1~3/RELEASE_X86_64 x86_64

Unlike @himatani, I am using x86_64 based Mac.

@sdnts
Copy link
Contributor

sdnts commented May 12, 2021

Hey everyone, I gave this another shot in prisma@2.23.0-dev.24. Could someone try that too? Not being able to reproduce has only left me with a few hunches, that I'm following up on :D

If it works, then this fix should land on stable next week (which I recommend updating to, etc etc). If not, please let me know!

@himatani
Copy link
Author

Special thanks to everyone.

I confirmed, then this version has completely worked :)
(with Safari 14.0.3)

@madebysid
As a side note, prisma@2.23.0-dev.10 doesn't worked and same errors occurred.
Thank you for working on the inspect for solve this!

@sdnts sdnts added this to the 2.23.0 milestone May 12, 2021
@sdnts sdnts closed this as completed May 12, 2021
@PanMan
Copy link

PanMan commented May 13, 2021

Just also tested it, this fixed it for me too 👍 (also Safari 14.0.3), previously had this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/1-unconfirmed Bug should have enough information for reproduction, but confirmation has not happened yet. kind/bug A reported bug.
Projects
None yet
Development

No branches or pull requests

4 participants