studio icon indicating copy to clipboard operation
studio copied to clipboard

I can not run Prisma studio

Open tanggyyggnat opened this issue 2 years ago • 10 comments

Bug description

I have run

  • npx prisma generate
  • npm run dev
  • and then npx prisma studio but Fatal Error

How to reproduce

Expected behavior

No response

Prisma information

Environment & setup

  • OS:
  • Browser:
  • Database:

Prisma logs

No response

tanggyyggnat avatar Oct 06 '23 16:10 tanggyyggnat

since updating to the latest version I cannot start prisma studio too:

Browser says: ERR_EMPTY_RESPONSE localhost did not send any data

chrishoermann avatar Oct 07 '23 10:10 chrishoermann

Same here ERR_EMPTY_RESPONSE

yigithanyucedag avatar Dec 11 '23 12:12 yigithanyucedag

I'd been in the same situation where I got the same error (ERR_EMPTY_RESPONSE), but fixed it by restarting my MacBook!

aviciida avatar Mar 17 '24 06:03 aviciida

Did anybody of you fix it? Restarted everything but still getting ERR_EMPTY_RESPONSE from the browser. Prisma Studio seems to start fine:

> npx prisma studio

Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Prisma Studio is up on http://localhost:5555

But can't be accessed. It just worked a minute ago. Only thing I did in between was install Android Studio. 🤔

reesz avatar Mar 27 '24 13:03 reesz

Same for me: ERR_EMPTY_RESPONSE

and the solution that works for me is to restart the computer

RomainHartmann avatar Apr 03 '24 15:04 RomainHartmann

I have a feeling that the simulator (Android Studio) has something to do with it

RomainHartmann avatar Apr 03 '24 21:04 RomainHartmann

I have a feeling that the simulator (Android Studio) has something to do with it

Thats right, i close the simulator and everything works now, i dont know why

ivan-acosta08 avatar Apr 04 '24 16:04 ivan-acosta08

Yes, closed the android simulator and it works now again.

ChangNoi69 avatar Apr 04 '24 17:04 ChangNoi69

Yes, closing android simulator seems to fix it... weird.

MrGiddz avatar May 04 '24 12:05 MrGiddz

Yes. Android emulator and prisma studio use the same port. Just launch the android emulator manually with the -port argument to specify a custom port.

Open your terminal. Navigate to the directory where your Android SDK is located. Usually, it's in the ~/Library/Android/sdk directory for macOS and C:\Users\Your-Username\AppData\Local\Android\Sdk for Windows. Go to the emulator directory. List all your available emulators by running the command emulator -list-avds. Start your emulator by running the command emulator -avd Your_Avd_Name -port 5556.

happy coding :D

Ryguy10712 avatar May 11 '24 01:05 Ryguy10712