Skip to content

Beta Build: No content can be deployed when using a named server #422

@kgartland-rstudio

Description

@kgartland-rstudio

rsconnect-python version: 1.17.0b1

When deploying any content using the -n option, the deployment fails with the following error:

> rsconnect deploy api ./ -n dogfood -N -v
    Warning: the existing manifest.json file will not be used or considered.
Validating server... 	[OK]
Validating app mode... 	[ERROR]: local variable 'app_store_version' referenced before assignment
Traceback (most recent call last):
  File "/Users/kgartland/.pyenv/versions/3.8.2/envs/rsconnect-tag/lib/python3.8/site-packages/rsconnect/main.py", line 96, in wrapper
    result = func(*args, **kwargs)
  File "/Users/kgartland/.pyenv/versions/3.8.2/envs/rsconnect-tag/lib/python3.8/site-packages/rsconnect/main.py", line 1313, in deploy_app
    ce.validate_server()
  File "/Users/kgartland/.pyenv/versions/3.8.2/envs/rsconnect-tag/lib/python3.8/site-packages/rsconnect/log.py", line 186, in wrapper
    result = method(self, *args, **kw)
  File "/Users/kgartland/.pyenv/versions/3.8.2/envs/rsconnect-tag/lib/python3.8/site-packages/rsconnect/api.py", line 892, in validate_app_mode
    self.state["app_store_version"] = app_store_version
UnboundLocalError: local variable 'app_store_version' referenced before assignment
Internal error: local variable 'app_store_version' referenced before assignment

When using the -s/-k values content deploys as expected.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions