• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

DOMException: Failed to execute 'send' on 'XMLHttpRequest'

Explorer ,
Oct 13, 2020 Oct 13, 2020

Copy link to clipboard

Copied

I am developing a Premiere Pro CEP Extention, using Axios to access the API, and the following error was reported and jumped to Catch block:

DOMException: Failed to execute 'send' on 'XMLHttpRequest': Failed to load 'https://a.b.com/api/v1/user': Document is already detached.

 

 

        this.axios_instance = axios.create({
            headers: this.header,
            baseURL: "https://" + this.tokens.tenant + "/api"
        });
        getUserInfo() {
            return this.axios_instance.get("/v1/user");
        }
        getUserInfo().then((resp) => {
            let userAccessController = resp.data.permissions;
            this.userAccessController(userAccessController);
            window.session.setPortalInfo(resp.data);
        }).catch((error) => {
            //error.response.status: 403
            this.setState({isAccessAllowed: false});
        });

 

 

 

This plug-in works well on Photoshop, Illustrator, InDesign, and only reports an error in Premiere Pro. Has anyone encountered this situation and give me some advise?

TOPICS
Error or problem

Views

893

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation