Skip to content

"Failed to execute 'json' on 'Response'" error in console on message send #5886

@sosnovsky

Description

@sosnovsky

I noticed such error in console which sometimes occurs when sending encrypted message:

Failed to execute 'json' on 'Response': Unexpected end of JSON input

SyntaxError: Unexpected end of JSON input
at Api.ajax (chrome-extension://EXTENSION_ID/js/common/api/shared/api.js:223:73)
at async performAjaxRequest (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/common/api/authentication/google/google-oauth.js:93:33)
at async GoogleOAuth.apiGoogleCallRetryAuthErrorOneTime (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/common/api/authentication/google/google-oauth.js:101:24)
at async Google.gmailCall (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/common/api/email-provider/gmail/google.js:38:20)
at async Gmail.draftDelete (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/js/common/api/email-provider/gmail/gmail.js:90:20)
at async ComposeDraftModule.draftDelete (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/chrome/elements/compose-modules/compose-draft-module.js:109:25)
at async Promise.all (index 0)
at async ComposeSendBtnModule.doSendMsgs (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/chrome/elements/compose-modules/compose-send-btn-module.js:292:17)
at async ComposeSendBtnModule.extractProcessSendMsg (chrome-extension://bnjglocicdkmhmoohhfkfkbbkejdhdgc/chrome/elements/compose-modules/compose-send-btn-module.js:95:32)
at <async> ajax (/extension/js/common/api/shared/api.ts:98:4)
at <async> performAjaxRequest (/extension/js/common/api/authentication/google/google-oauth.ts:88:31)
at <async> apiGoogleCallRetryAuthErrorOneTime (/extension/js/common/api/authentication/google/google-oauth.ts:85:4)
at <async> gmailCall (/extension/js/common/api/email-provider/gmail/google.ts:19:28)
at <async> draftDelete (/extension/js/common/api/email-provider/gmail/gmail.ts:81:23)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions