Skip to content

Commit

Permalink
Increase network timeout when checking API key
Browse files Browse the repository at this point in the history
Some users of OctoPrint 1.5.x report that connecting through the Connect to OctoPrint dialog no longer works because the API is too slow to respond.

Mitigates #211
  • Loading branch information
fieldOfView committed Dec 9, 2020
1 parent 07472d8 commit d87df09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DiscoverOctoPrintAction.py
Expand Up @@ -270,7 +270,7 @@ def testApiKey(self, instance_id: str, api_key: str) -> None:
settings_request.setRawHeader(b"X-Api-Key", api_key.encode())
self._settings_reply = self._network_manager.get(settings_request)
self._settings_reply_timeout = NetworkReplyTimeout(
self._settings_reply, 5000, self._onRequestFailed
self._settings_reply, 20000, self._onRequestFailed
)

self._settings_instance = instance
Expand Down

0 comments on commit d87df09

Please sign in to comment.