You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by GitBox <gi...@apache.org> on 2019/11/20 10:04:40 UTC

[GitHub] [incubator-superset] gamebusterz opened a new issue #8607: Malformed JSON in the extras field: SyntaxError: Unexpected end of JSON input

gamebusterz opened a new issue #8607: Malformed JSON in the extras field: SyntaxError: Unexpected end of JSON input
URL: https://github.com/apache/incubator-superset/issues/8607
 
 
   While adding a new database connection (tried for Postgres and Redshift both), clicking on '**Test Connection**' gives  `Malformed JSON in the extras field: SyntaxError: Unexpected end of JSON input` error.
   The **Extra** field has 
   ```
   {
       "metadata_params": {},
       "engine_params": {},
       "metadata_cache_timeout": {},
       "schemas_allowed_for_csv_upload": []
   }
   ```
   And the **Secure Extra** field is empty. I also tried removing the JSON in the **Extra** field altogether but I still get this error. 
   
   The connection strings, I've tried are:
   `redshift+psycopg2://user:pass@host/dbname` for Redshift and `postgresql://user:pass@host:5432/dbname` for Postgres 
   
   ### Expected results
   The connection should be tested successfully.
   
   ### Actual results
   Clicking on '**Test Connection**' gives  `Malformed JSON in the extras field: SyntaxError: Unexpected end of JSON input` error.
   
   #### Screenshots
   <img width="449" alt="Screenshot 2019-11-20 at 15 19 36" src="https://user-images.githubusercontent.com/6880188/69229269-236ed280-0bab-11ea-9f2a-3e531e1b1882.png">
   
   #### How to reproduce the bug
   
   1. Go to Sources > Databases
   2. Click on 'Add a new record' (Plus button)
   3. Keeping all the field as it is, just add the database name and database URI
   4. Click on 'Test Connection' to see the error.
   
   ### Environment
   
   (please complete the following information):
   
   - superset version: `"0.999.0dev",`
   - python version: `Python 3.6.7`
   - node.js version: `v13.1.0`
   - npm version: `6.12.1`
   
   ### Checklist
   
   Make sure these boxes are checked before submitting your issue - thank you!
   
   - [X] I have checked the superset logs for python stacktraces and included it here as text if there are any.
   - [X] I have reproduced the issue with at least the latest released version of superset.
   - [X] I have checked the issue tracker for the same issue and I haven't found one similar.
   
   ### Additional context
   
   I have copied the default JSON in the extras field and checked its validity, and it is a valid JSON.
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org