Description
When I try to add a Gmail account, I get a “mailsync error 134” with the following stack trace:
'*** Mailspring Sync \n' +
'*** An exception occurred during program execution: \n' +
`*** {"debuginfo":"https://www.googleapis.com/oauth2/v4/token","key":"Couldn't resolve host name","retryable":true,"what":"std::exception"}\n` +
'***\n' +
'\n' +
'critical: \n' +
'***\n' +
'*** Mailspring Sync \n' +
'*** An exception occurred during program execution: \n' +
`*** {"debuginfo":"https://www.googleapis.com/oauth2/v4/token","key":"Couldn't resolve host name","retryable":true,"what":"std::exception"}\n` +
'***\n' +
'\n' +
'critical: *** Stack trace (line numbers are approximate):\n' +
'*** ??:? ValidateRequestResp(CURLcode, void*, string)\n' +
'*** ??:? PerformRequest(void*)\n' +
'*** ??:? PerformJSONRequest(void*)\n' +
'*** ??:? MakeOAuthRefreshRequest(string, string, string)\n' +
'*** ??:? XOAuth2TokenManager::partsForAccount(shared_ptr)\n' +
'*** ??:? MailUtils::configureSessionForAccount(mailcore::IMAPSession&, shared_ptr)\n' +
'*** ??:? runTestAuth(shared_ptr)\n' +
'*** ??:? main()\n' +
'***\n' +
'\n' +
'critical: *** Stack trace (line numbers are approximate):\n' +
'*** ??:? ValidateRequestResp(CURLcode, void*, string)\n' +
'*** ??:? PerformRequest(void*)\n' +
'*** ??:? PerformJSONRequest(void*)\n' +
'*** ??:? MakeOAuthRefreshRequest(string, string, string)\n' +
'*** ??:? XOAuth2TokenManager::partsForAccount(shared_ptr)\n' +
'*** ??:? MailUtils::configureSessionForAccount(mailcore::IMAPSession&, shared_ptr)\n' +
'*** ??:? runTestAuth(shared_ptr)\n' +
'*** ??:? main()\n' +
'***\n' +
'\n' +
'/usr/share/mailspring/resources/app.asar.unpacked/mailsync: line 5: 25737 Aborted (core dumped) SASL_PATH="$SCRIPTPATH" LD_LIBRARY_PATH="$SCRIPTPATH;$LD_LIBRARY_PATH" "$SCRIPTPATH/mailsync.bin" "$@"\n'
Similarly, with Microsoft 365:
'*** Mailspring Sync \n' +
'*** An exception occurred during program execution: \n' +
`*** {"debuginfo":"https://login.microsoftonline.com/common/oauth2/v2.0/token","key":"Couldn't resolve host name","retryable":true,"what":"std::exception"}\n` +
'***\n' +
'\n' +
'critical: \n' +
'***\n' +
'*** Mailspring Sync \n' +
'*** An exception occurred during program execution: \n' +
`*** {"debuginfo":"https://login.microsoftonline.com/common/oauth2/v2.0/token","key":"Couldn't resolve host name","retryable":true,"what":"std::exception"}\n` +
'***\n' +
'\n' +
'critical: *** Stack trace (line numbers are approximate):\n' +
'*** ??:? ValidateRequestResp(CURLcode, void*, string)\n' +
'*** ??:? PerformRequest(void*)\n' +
'*** ??:? PerformJSONRequest(void*)\n' +
'*** ??:? MakeOAuthRefreshRequest(string, string, string)\n' +
'*** ??:? XOAuth2TokenManager::partsForAccount(shared_ptr)\n' +
'*** ??:? MailUtils::configureSessionForAccount(mailcore::IMAPSession&, shared_ptr)\n' +
'*** ??:? runTestAuth(shared_ptr)\n' +
'*** ??:? main()\n' +
'***\n' +
'\n' +
'critical: *** Stack trace (line numbers are approximate):\n' +
'*** ??:? ValidateRequestResp(CURLcode, void*, string)\n' +
'*** ??:? PerformRequest(void*)\n' +
'*** ??:? PerformJSONRequest(void*)\n' +
'*** ??:? MakeOAuthRefreshRequest(string, string, string)\n' +
'*** ??:? XOAuth2TokenManager::partsForAccount(shared_ptr)\n' +
'*** ??:? MailUtils::configureSessionForAccount(mailcore::IMAPSession&, shared_ptr)\n' +
'*** ??:? runTestAuth(shared_ptr)\n' +
'*** ??:? main()\n' +
'***\n' +
'\n' +
'/usr/share/mailspring/resources/app.asar.unpacked/mailsync: line 5: 26117 Aborted (core dumped) SASL_PATH="$SCRIPTPATH" LD_LIBRARY_PATH="$SCRIPTPATH;$LD_LIBRARY_PATH" "$SCRIPTPATH/mailsync.bin" "$@"\n'
Setup
- OS and Version: EndeavourOS
- Installation Method: AUR
- Mailspring Version: 1.13.1-1