kameleo-io / local-api-client-typescript

Official JavaScript/TypeScript library for interacting with Kameleo Client
https://kameleo.io/learn-more/automation
MIT License
45 stars 2 forks source link

Changing proxy inside profile causes error #4

Closed JonathanR25 closed 8 months ago

JonathanR25 commented 8 months ago

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

MBailey01 commented 8 months ago

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