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

[Embed SDK] Error: PARAMS_REQUEST_FAILED

New Here ,
Jul 22, 2024 Jul 22, 2024

Hello,

I'm encountering an issue while trying to initialize the Adobe Embed SDK in my web application. The error message I'm receiving is:

sori31719942hqw2_0-1721633353244.pngexpand image

 

Here is the code I'm using:

 

 <script>
      (async () => {
        const initializeParams = {
          clientId: '<CLIENT_ID>',
          appName: '<APP_NAME>',
        };

        const ccEverywhere = await window.CCEverywhere.initialize(initializeParams);

        const { editor } = ccEverywhere;

        const callbacks = {
          onCancel: () => {},
          onPublish: (intent, publishParams) => {
            const localData = { project: publishParams.projectId, image: publishParams.asset[0].data };
            console.log(localData);
          },
          onError: (err) => {
            console.error('Error received:', err.toString());
          },
        };

        let appConfig = { callbacks: callbacks };

        const updateImage = (localData) => {
          image_data.src=localData.image;
          project_id = localData.project;
        };

        console.log('Creating editor with config:', appConfig);

        editor.create(appConfig);
      })();
    </script>

 

I have verified that:

  1. The clientId and appName are correctly set.
  2. The SDK script is properly loaded.

Thank you

TOPICS
Error , User Interface
286
Translate
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

correct answers 1 Correct answer

Adobe Employee , Nov 15, 2024 Nov 15, 2024

Hi there,

This should solve your issue:

 

editor.create({}, appConfig);

 

Explanation: the create() method expects its (optional) parameters in a specific order—see it's signature:

 

create(
   docConfig?: object, 
   appConfig?: object, 
   exportConfig?: object, 
   containerConfig?: object
): void

 

By skipping the first parameter, the method was interpreting appConfig as docConfig—hence the error.

Hope this helps!

 

 

Translate
Adobe Employee ,
Aug 26, 2024 Aug 26, 2024

Hi @sori31719942hqw2, Can you send us the client ID via email(njalal@adobe.com) to help debug the issue?

Nimitha | Adobe Community Moderator
Translate
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
Community Beginner ,
Nov 09, 2024 Nov 09, 2024

Hi, did you manage to find the problem for this? I'm getting the same problem and can't find resolution on here

Translate
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
Adobe Employee ,
Nov 15, 2024 Nov 15, 2024
LATEST

Hi there,

This should solve your issue:

 

editor.create({}, appConfig);

 

Explanation: the create() method expects its (optional) parameters in a specific order—see it's signature:

 

create(
   docConfig?: object, 
   appConfig?: object, 
   exportConfig?: object, 
   containerConfig?: object
): void

 

By skipping the first parameter, the method was interpreting appConfig as docConfig—hence the error.

Hope this helps!

 

 

Davide Barranca | Sr. Developer Relations Engineer @Adobe
Translate
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