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

Facing some issues regarding timeout #168

Open
RampageousRJ opened this issue Jul 3, 2024 · 0 comments
Open

Facing some issues regarding timeout #168

RampageousRJ opened this issue Jul 3, 2024 · 0 comments

Comments

@RampageousRJ
Copy link

I have a deployed version of my code online which is running fine but when trying to run a local version of the same code, I am facing the errors
Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "E:\Study\OneDrive - Manipal Academy of Higher Education\Coding\Mini-Projects\Arihant-Ledger\virt\Scripts\flask.exe_main
.py", line 7, in
File "E:\Study\OneDrive - Manipal Academy of Higher Education\Coding\Mini-Projects\Arihant-Ledger\virt\Lib\site-packages\flask\cli.py", line 1105, in main
cli.main()
File "E:\Study\OneDrive - Manipal Academy of Higher Education\Coding\Mini-Projects\Arihant-Ledger\virt\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "E:\Study\OneDrive - Manipal Academy of Higher Education\Coding\Mini-Projects\Arihant-Ledger\virt\Lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Study\OneDrive - Manipal Academy of Higher Education\Coding\Mini-Projects\Arihant-Ledger\virt\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Study\OneDrive - Manipal Academy of Higher Education\Coding\Mini-Projects\Arihant-Ledger\virt\Lib\site-packages\click\core.py", line 783, in invoke
return _callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Study\OneDrive - Manipal Academy of Higher Education\Coding\Mini-Projects\Arihant-Ledger\virt\Lib\site-packages\click\decorators.py", line 92, in new_func
return ctx.invoke(f, obj, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Study\OneDrive - Manipal Academy of Higher Education\Coding\Mini-Projects\Arihant-Ledger\virt\Lib\site-packages\click\core.py", line 783, in invoke
return callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Study\OneDrive - Manipal Academy of Higher Education\Coding\Mini-Projects\Arihant-Ledger\virt\Lib\site-packages\flask\cli.py", line 953, in run_command
raise e from None
File "E:\Study\OneDrive - Manipal Academy of Higher Education\Coding\Mini-Projects\Arihant-Ledger\virt\Lib\site-packages\flask\cli.py", line 937, in run_command
app: WSGIApplication = info.load_app()
^^^^^^^^^^^^^^^
File "E:\Study\OneDrive - Manipal Academy of Higher Education\Coding\Mini-Projects\Arihant-Ledger\virt\Lib\site-packages\flask\cli.py", line 339, in load_app
app = locate_app(import_name, None, raise_if_not_found=False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Study\OneDrive - Manipal Academy of Higher Education\Coding\Mini-Projects\Arihant-Ledger\virt\Lib\site-packages\flask\cli.py", line 245, in locate_app
import(module_name)
File "E:\Study\OneDrive - Manipal Academy of Higher Education\Coding\Mini-Projects\Arihant-Ledger\app.py", line 1, in
from ledger import app
File "E:\Study\OneDrive - Manipal Academy of Higher Education\Coding\Mini-Projects\Arihant-Ledger\ledger_init
.py", line 16, in
mongo = PyMongo(app)
^^^^^^^^^^^^
File "E:\Study\OneDrive - Manipal Academy of Higher Education\Coding\Mini-Projects\Arihant-Ledger\virt\Lib\site-packages\flask_pymongo_init
.py", line 110, in init
self.init_app(app, uri, *args, **kwargs)
File "E:\Study\OneDrive - Manipal Academy of Higher Education\Coding\Mini-Projects\Arihant-Ledger\virt\Lib\site-packages\flask_pymongo_init
.py", line 147, in init_app
parsed_uri = uri_parser.parse_uri(uri)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Study\OneDrive - Manipal Academy of Higher Education\Coding\Mini-Projects\Arihant-Ledger\virt\Lib\site-packages\pymongo\uri_parser.py", line 543, in parse_uri
dns_options = dns_resolver.get_options()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\Study\OneDrive - Manipal Academy of Higher Education\Coding\Mini-Projects\Arihant-Ledger\virt\Lib\site-packages\pymongo\srv_resolver.py", line 99, in get_options
raise ConfigurationError(str(exc)) from None
pymongo.errors.ConfigurationError: The resolution lifetime expired after 21.158 seconds: Server Do53:192.168.1.1@53 answered The DNS operation timed out.; Server Do53:192.168.1.1@53 answered The DNS operation timed out.; Server Do53:192.168.1.1@53 answered The DNS operation timed out.; Server Do53:192.168.1.1@53 answered The DNS operation timed out.; Server Do53:192.168.1.1@53 answered The DNS operation timed out.; Server Do53:192.168.1.1@53 answered The DNS operation timed out.; Server Do53:192.168.1.1@53 answered The DNS operation timed out.

Any suggestions or changes I should be focusing on?

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