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

Could not deploy app #721

Open
CakeCrusher opened this issue Jan 8, 2025 · 0 comments
Open

Could not deploy app #721

CakeCrusher opened this issue Jan 8, 2025 · 0 comments

Comments

@CakeCrusher
Copy link

Tried running writer deploy hello-world and failed with a 500 error.

(.venv) PS C:\Notes\writer> writer deploy hello-world
500 Server Error: Internal Server Error for url: https://api.writer.com/v1/deployment/apps?lineLimit=1
{'request_id': 'e5cdc34b1a865155c635066363f42902', 'message': 'An unexpected error occurred'}
Creating deployment package from path: C:\Notes\writer\hello-world
Packing file: main.py
Packing file: README.md
Packing file: requirements.txt
Packing file: .wf\components-page-0-c0f99a9e-5004-4e75-a6c6-36f17490b134.jsonl
Packing file: .wf\components-root.jsonl
Packing file: .wf\components-workflows_root.jsonl
Packing file: .wf\metadata.json
Packing file: static\favicon.png
Packing file: static\README.md
Uploading package to deployment server
Traceback (most recent call last):
  File "C:\Notes\writer\.venv\lib\site-packages\writer\deploy.py", line 53, in deploy
    upload_package(deploy_url, tar, api_key, env, verbose=verbose, sleep_interval=sleep_interval)
  File "C:\Notes\writer\.venv\lib\site-packages\writer\deploy.py", line 257, in upload_package
    on_error_print_and_raise(resp, verbose=verbose)
  File "C:\Notes\writer\.venv\lib\site-packages\writer\deploy.py", line 291, in on_error_print_and_raise
    raise e
  File "C:\Notes\writer\.venv\lib\site-packages\writer\deploy.py", line 287, in on_error_print_and_raise
    resp.raise_for_status()
  File "C:\Notes\writer\.venv\lib\site-packages\requests\models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://api.writer.com/v1/deployment/apps

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Python310\lib\runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Python310\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "C:\Notes\writer\.venv\Scripts\writer.exe\__main__.py", line 7, in <module>
    sys.exit(main())
  File "C:\Notes\writer\.venv\lib\site-packages\click\core.py", line 1161, in __call__
    return self.main(*args, **kwargs)
  File "C:\Notes\writer\.venv\lib\site-packages\click\core.py", line 1082, in main
    rv = self.invoke(ctx)
  File "C:\Notes\writer\.venv\lib\site-packages\click\core.py", line 1697, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "C:\Notes\writer\.venv\lib\site-packages\click\core.py", line 1443, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "C:\Notes\writer\.venv\lib\site-packages\click\core.py", line 788, in invoke
    return __callback(*args, **kwargs)
  File "C:\Notes\writer\.venv\lib\site-packages\writer\deploy.py", line 58, in deploy
    on_error_print_and_raise(e.response, verbose=verbose)
  File "C:\Notes\writer\.venv\lib\site-packages\writer\deploy.py", line 291, in on_error_print_and_raise
    raise e
  File "C:\Notes\writer\.venv\lib\site-packages\writer\deploy.py", line 287, in on_error_print_and_raise
    resp.raise_for_status()
  File "C:\Notes\writer\.venv\lib\site-packages\requests\models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://api.writer.com/v1/deployment/apps
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