You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Dev-iL (via GitHub)" <gi...@apache.org> on 2025/04/24 15:09:35 UTC
[I] "Unexpected end of JSON input" when editing (S)FTP-type connections [airflow]
Dev-iL opened a new issue, #49734:
URL: https://github.com/apache/airflow/issues/49734
### Apache Airflow version
3.0.0
### If "Other Airflow 2 version" selected, which one?
_No response_
### What happened?
My airflow3 instance uses a connections.json file exported from 2.10.5.
I attempted to view the connection settings for an ftp-type connection via the webserver, when the error appeared. Connection types outside of ftp/sftp don't have this problem.
### What you think should happen instead?
If the connection is misspecified in the json file, I would expect it to raise an error much earlier, on-import, not on-edit.
### How to reproduce
Import the below `connections.json`, then attempt to edit it via the webserver:
```json
"foo_ftp": {
"conn_type": "ftp",
"description": "Bar File Server",
"login": "anonymous",
"password": "-",
"host": "foo.bar.baz",
"port": null,
"schema": "",
"extra": ""
},
```
### Operating System
Rocky Linux 9.3
### Versions of Apache Airflow Providers
```none
apache-airflow-providers-amazon | 9.6.1
apache-airflow-providers-celery | 3.10.6
apache-airflow-providers-cncf-kubernetes | 10.4.3
apache-airflow-providers-common-compat | 1.6.0
apache-airflow-providers-common-io | 1.5.4
apache-airflow-providers-common-messaging | 1.0.0
apache-airflow-providers-common-sql | 1.26.0
apache-airflow-providers-docker | 4.3.1
apache-airflow-providers-elasticsearch | 6.2.2
apache-airflow-providers-fab | 2.0.1
apache-airflow-providers-ftp | 3.12.3
apache-airflow-providers-git | 0.0.2
apache-airflow-providers-google | 15.1.0
apache-airflow-providers-grpc | 3.7.3
apache-airflow-providers-hashicorp | 4.1.1
apache-airflow-providers-http | 5.2.2
apache-airflow-providers-microsoft-azure | 12.3.1
apache-airflow-providers-mysql | 6.2.2
apache-airflow-providers-odbc | 4.9.2
apache-airflow-providers-openlineage | 2.2.0
apache-airflow-providers-postgres | 6.1.3
apache-airflow-providers-redis | 4.0.2
apache-airflow-providers-sendgrid | 4.0.1
apache-airflow-providers-sftp | 5.2.1
apache-airflow-providers-slack | 9.0.5
apache-airflow-providers-smtp | 2.0.3
apache-airflow-providers-snowflake | 6.2.2
apache-airflow-providers-ssh | 4.0.1
apache-airflow-providers-standard | 1.0.0
```
### Deployment
Docker-Compose
### Deployment details
_No response_
### Anything else?
_No response_
### Are you willing to submit PR?
- [ ] Yes I am willing to submit a PR!
### Code of Conduct
- [x] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] "Unexpected end of JSON input" when editing (S)FTP-type connections [airflow]
Posted by "ashb (via GitHub)" <gi...@apache.org>.
ashb commented on issue #49734:
URL: https://github.com/apache/airflow/issues/49734#issuecomment-2831502662
Where do you see that error? Can you provide any more of a stack trace?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] "Unexpected end of JSON input" when editing (S)FTP-type connections [airflow]
Posted by "bbovenzi (via GitHub)" <gi...@apache.org>.
bbovenzi closed issue #49734: "Unexpected end of JSON input" when editing (S)FTP-type connections
URL: https://github.com/apache/airflow/issues/49734
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] "Unexpected end of JSON input" when editing (S)FTP-type connections [airflow]
Posted by "emiliadecaudin (via GitHub)" <gi...@apache.org>.
emiliadecaudin commented on issue #49734:
URL: https://github.com/apache/airflow/issues/49734#issuecomment-2828564194
This is affecting me as well after a test upgrade to Airflow 3. The Connections can still be read/still work, they just can't be edited.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] "Unexpected end of JSON input" when editing (S)FTP-type connections [airflow]
Posted by "Dev-iL (via GitHub)" <gi...@apache.org>.
Dev-iL commented on issue #49734:
URL: https://github.com/apache/airflow/issues/49734#issuecomment-2832426322
This is the page that appears, instead of a popup with the connection details, when pressing the "Edit Connection" button next to an (s)ftp connection:

Nothing is printed in the log after clicking. The only suspicious log print is the below, which prints once when loading the connections list:
```none
airflow-apiserver-1 | [2025-04-26T16:36:29.128+0000] {connections.py:232} ERROR - Unknown form widget in fs: ConnectionFormWidgetInfo(hook_class_name='FSHook', package_name='airflow.providers.standard.hooks.filesystem', field=<UnboundField(StringField, (l'Path',), {'widget': <flask_appbuilder.fieldwidgets.BS3TextFieldWidget object at 0x7f3614db8fb0>})>, field_name='path', is_sensitive=False)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org