Highlighted

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

Explorer ,
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

23

Likes

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

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

Explorer ,
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

24

Likes

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
Oct 13, 2020 0

Have something to add?

Join the conversation