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

Client error: 401 Access Denied #291

Open
rekharajasekhar94 opened this issue Jun 8, 2021 · 4 comments
Open

Client error: 401 Access Denied #291

rekharajasekhar94 opened this issue Jun 8, 2021 · 4 comments

Comments

@rekharajasekhar94
Copy link

rekharajasekhar94 commented Jun 8, 2021

Hi Team,
We are new to RETS server connection. We are trying to connect RETS to our Laravel (V7.30) project. We installed troydavisson/PHRETS module into our project to check the API connectivity. When we tried to connect to get basic data, we are getting error

GuzzleHttp\Exception\ClientException
Client error: 401 Access Denied response: <html xml (truncated...)

The code is as below:

$config = new \PHRETS\Configuration; $config->setLoginUrl('xxxxxxxxxxx') ->setUsername('XXXXXXXX') ->setPassword('XXXXXXXX') ->setRetsVersion('1.7.2'); \PHRETS\Http\Client::set(new \GuzzleHttp\Client); $connect = $rets->Login(); $options = array("UsePost" => 1); $results = $rets->Search("PROPERTY", "RES", "(LISTSTATUS=|ACT)", $options); print_r($results);

Kindly help us if is there anything we missed. Also, let us know if the above process is correct or not.

@maietta
Copy link

maietta commented Dec 18, 2021

We're now having what appears to be the same issue..

@dayoneweb
Copy link

I wasn't having this issue, but now I am for some reason.

@maietta
Copy link

maietta commented Nov 1, 2022

I've come across this problem after hitting a rate limit but also ran into this when the feed provider decided to switch the URLs without me being notified in advance.

My money is on rate limit is reached or maintenance.

@dayoneweb
Copy link

I appreciate these tips, @maietta! I'll do some more checking into this.

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

3 participants