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 db push does not work #929

Open
misogihagi opened this issue Mar 22, 2024 · 0 comments
Open

prisma db push does not work #929

misogihagi opened this issue Mar 22, 2024 · 0 comments

Comments

@misogihagi
Copy link

Bug description

prisma db push does not work

here is running log.

I don't know what caused it.

Traceback (most recent call last):
  File "/usr/local/lib/python3.11/site-packages/prisma/engine/query.py", line 207, in spawn
    data = await self.request('GET', '/status')
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/prisma/engine/http.py", line 149, in request
    raise errors.EngineRequestError(resp, await resp.text())
prisma.engine.errors.EngineRequestError: 301: <HTML>
<HEAD><TITLE>Redirection</TITLE></HEAD>
<BODY><H1>Redirect</H1></BODY>


The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/work/in.py", line 22, in <module>
    asyncio.run(main())
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 190, in run
    return runner.run(main)
           ^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/runners.py", line 118, in run
    return self._loop.run_until_complete(task)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/asyncio/base_events.py", line 654, in run_until_complete
    return future.result()
           ^^^^^^^^^^^^^^^
  File "/work/in.py", line 9, in main
    await db.connect()
  File "/usr/local/lib/python3.11/site-packages/prisma/client.py", line 292, in connect
    await self.__engine.connect(
  File "/usr/local/lib/python3.11/site-packages/prisma/engine/query.py", line 137, in connect
    await self.spawn(file, timeout=timeout, datasources=datasources)
  File "/usr/local/lib/python3.11/site-packages/prisma/engine/query.py", line 230, in spawn
    raise errors.EngineConnectionError(
prisma.engine.errors.EngineConnectionError: Could not connect to the query engine
root@792246b0371b:/work# 

How to reproduce

May be relevant to the corporate environment under proxy.

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

No branches or pull requests

1 participant