Skip to content
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

x_passphrase field missing from response #129

Closed
NickDunas opened this issue Oct 13, 2021 · 6 comments
Closed

x_passphrase field missing from response #129

NickDunas opened this issue Oct 13, 2021 · 6 comments

Comments

@NickDunas
Copy link

I noticed that the x_passphrase is missing from the response I get from our controllers. I contacted ubiquity help center, but they cannot help me. I see that passphrase does exist on the responses on UniFi API Browser demo. Any ideas what I might be doing wrong?

@malle-pietje
Copy link
Collaborator

Please share more information:

  • which API client version you are using?
  • a code snippet that shows which function/method you are calling and the parameters you're passing.
  • have you installed the API Browser locally and checked what the output is from your controllers?

@malle-pietje
Copy link
Collaborator

Do not expect support from Ubiquiti for API-related matters...

@NickDunas
Copy link
Author

Thank you for your response!

API client version: v1.1.70

Code snippet:

$client = new UnifiClient($username, $password, $url, $site->unifi_name);
$client->login();
$data = $client->list_wlanconf();

I haven't tried installing the API browser locally as I see that it will just use the API Client to call the same list_wlanconf command. Do you suggest giving it a try in any case?

@malle-pietje
Copy link
Collaborator

OK, that code looks fine. Yes, installing the API browser will be useful anyways and give you fast and easy access to most of the API endpoints.

In the output you get do you see a value for the wpa_mode key?

@NickDunas
Copy link
Author

Yes it is wpa2

@malle-pietje
Copy link
Collaborator

Ok, in that case I suspect it’s a controller related issue. Which version are you running? Please also confirm what the output from the API Browser tool is, and please check as many sites and controllers as possible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants