-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling any client method generates error "Error ReferenceError: locationid is not defined" #25
Comments
You need to add a global variable locationid. value can be either 1 or 2. meaning:
|
I am still getting this issue. Any help? @k8188219 is that suggestion you posted meant to be used by the code doing calls with the pCloud client? |
@jleeothon @edtechd @hbi99 @k8188219 @sergioeliot2039 this may be a case of incomplete documentation, but you can get some context here: 682ed7c See the examples. |
Hello @sergioeliot2039,
to:
File is located in pcloud-sdk-js\lib\api\ApiMethod.js |
I'm trying to use it with Quasar, Vite and Vue 3. So far, the following configuration hacks are needed:
This works during development. Running the code after publishing the app still results in |
I can confirm this does work:
I just would rather pass in locationid under ApiMethod or on the client level if possible. There should be a better way of setting the Example:
Sometimes I've got a node server that already has an authentication token and doesn't need to prompt for another authToken. The error I get is: |
After updating to v2.0.0, my minimal script (in Node):
Running it with:
Getting:
Indeed in
ApiMethod.js
a variablelocationid
is used but never defined.The text was updated successfully, but these errors were encountered: