Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Changing proxy inside profile causes error

Upon trying to change a proxy inside profile we get this error:

let  profile=await kameleoClient.readProfile(gm_kameleo_profile);

      //console.log(profile);
      profile.proxy= {
          value: 'http',
          extra: {
            host: proxy_ip,
            port: parseInt(proxy_port),
          }};
   

         // console.log(profile);
     await kameleoClient.updateProfile(gm_kameleo_profile, {
              body: profile,
      });


At line:1 char:1
+ node .\winxxxx
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (C:\ytscan\node_...t\index.js:1321:String) [], RemoteExce
   ption
    + FullyQualifiedErrorId : NativeCommandError
 
    const error = new coreRestPipeline.RestError(initialErrorMessage, {
                  ^
RestError: {"code":400,"error":{"hardwareConcurrency":["The HardwareConcurrency field is required."]}}
    at handleErrorResponse (C:\ytscan\node_modules\@azure\core-client\dist\index.js:1321:19)
    at deserializeResponseBody (C:\ytscan\node_modules\@azure\core-client\dist\index.js:1256:45)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5) {
  code: undefined,

We are attempting to change the proxy within the profile for further use.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

By checking the issue with the hardware concurrency field missing, please make sure you update to the latest NPM package. Here is the table for compatibility:
https://help.kameleo.io/hc/en-us/articles/4418391839249-Kameleo-Local-API-Client#heading-4

The new version of NPM (v3.1) is available for Kameleo v3.1. This can be seen on the Kameleo Local API article here > https://help.kameleo.io/hc/en-us/articles/4418391839249-Kameleo-Local-API-Client#h_01HP72KFHTD24GCPQ7H3TZEKAA

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading