You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.
ValueError: invalid literal for int() with base 10
I have a solution which uses pymongo.uri_parser.parse_uri (if installed) to parse the the MongoDB URL, selecting the first node (or, host:port) to extract the port, hostname and database.
The text was updated successfully, but these errors were encountered:
kierandarcy
pushed a commit
to kierandarcy/flask-heroku
that referenced
this issue
Mar 24, 2016
A MongoDB URI can specify multiple, comma separated host:port URL parts like this:
mongodb://username:password@host1:123,host2:456/database
A URL in this form will result in an error:
ValueError: invalid literal for int() with base 10
I have a solution which uses
pymongo.uri_parser.parse_uri
(if installed) to parse the the MongoDB URL, selecting the first node (or, host:port) to extract the port, hostname and database.The text was updated successfully, but these errors were encountered: