I'm trying to get azure media services job details using Azure PHP SDK. I could able to do this previously. But now it shows some error below.
Fatal error: Uncaught exception
'WindowsAzure\Common\ServiceException' with message 'Fail: Code: 401
Value: Unauthorized details (if any): .' in
D:\mystack\htdocs\at\sites\all\modules\custom\ams\vendor\microsoft\windowsazure\WindowsAzure\Common\Internal\Http\HttpClient.php:382
Stack trace: 0
D:\mystack\htdocs\at\sites\all\modules\custom\ams\vendor\microsoft\windowsazure\WindowsAzure\Common\Internal\Http\HttpClient.php(276):
WindowsAzure\Common\Internal\Http\HttpClient::throwIfError(401,
'Unauthorized', '', Array) 1
D:\mystack\htdocs\at\sites\all\modules\custom\ams\vendor\microsoft\windowsazure\WindowsAzure\Common\Internal\RestProxy.php(141):
WindowsAzure\Common\Internal\Http\HttpClient->send(Array,
Object(WindowsAzure\Common\Internal\Http\Url)) 2
D:\mystack\htdocs\at\sites\all\modules\custom\ams\vendor\microsoft\windowsazure\WindowsAzure\Common\Internal\ServiceRestProxy.php(86):
WindowsAzure\Common\Internal\RestProxy->sendContext(Object(WindowsAzure\Common\Internal\Http\HttpCallContext))
3 D:\mystack\htdocs\at\sites\a in
D:\mystack\htdocs\at\sites\all\modules\custom\ams\vendor\microsoft\windowsazure\WindowsAzure\Common\Internal\Http\HttpClient.php
on line 382
Any problem with azure rest service?
Related
Fatal error: Uncaught PayPalHttp\HttpException: {"error":"invalid_client","error_description":"Client Authentication failed"} in /home/smmtopse/public_html/vendor/paypal/paypalhttp/lib/PayPalHttp/HttpClient.php:224
Stack trace:
#0 /home/smmtopse/public_html/vendor/paypal/paypalhttp/lib/PayPalHttp/HttpClient.php(107): PayPalHttp\HttpClient->parseResponse(Object(PayPalHttp\Curl))
#1 /home/smmtopse/public_html/vendor/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/AuthorizationInjector.php(40): PayPalHttp\HttpClient->execute(Object(PayPalCheckoutSdk\Core\AccessTokenRequest))
#2 /home/smmtopse/public_html/vendor/paypal/paypal-checkout-sdk/lib/PayPalCheckoutSdk/Core/AuthorizationInjector.php(32): PayPalCheckoutSdk\Core\AuthorizationInjector->fetchAccessToken()
#3 /home/smmtopse/public_html/vendor/paypal/paypalhttp/lib/PayPalHttp/HttpClient.php(71): PayPalCheckoutSdk\Core\AuthorizationInjector->inject(Object(PayPalCheckoutSdk\Orders\OrdersCreateRequest))
#4 /home/smmtopse/public_html/app/controller/addfunds.php(189): PayP in /home/smmtopse/public_html/vendor/paypal/paypalhttp/lib/PayPalHttp/HttpClient.php on line 224
There are exactly two possible reasons for an invalid_client error when attempting to obtain an access_token.
You are using or transmitting wrong REST App API credentials. Obtain a new clientid and secret from the "sandbox" or "live' tab of PayPal Developer.
You are using sandbox credential in live mode, or live credentials in sandbox mode. The two environments are completely separate, and a clientid+secret from one will never work in the other.
i have to use google api in my project using php
the project : using google search engine and gathering urls and their source pages
i downloaded google api php client and i followed what ever is written here
https://code.google.com/p/google-api-php-client/
after running i ge this error:
Fatal error: Uncaught exception 'Google_ServiceException' with message 'Error calling GET https://www.googleapis.com/plus/v1/people/me/activities/public?key=[REDACTED]: (403) Access Not Configured' in C:\xampp\htdocs\google-api-php-client\src\io\Google_REST.php:66 Stack trace: #0 C:\xampp\htdocs\google-api-php-client\src\io\Google_REST.php(36): Google_REST::decodeHttpResponse(Object(Google_HttpRequest)) #1 C:\xampp\htdocs\google-api-php-client\src\service\Google_ServiceResource.php(186): Google_REST::execute(Object(Google_HttpRequest)) #2 C:\xampp\htdocs\google-api-php-client\src\contrib\Google_PlusService.php(58): Google_ServiceResource->__call('list', Array) #3 C:\xampp\htdocs\googleapitest.php(31): Google_ActivitiesServiceResource->listActivities('me', 'public') #4 {main} thrown in C:\xampp\htdocs\google-api-php-client\src\io\Google_REST.php on line 66
i am completely confused and don't know what to do
That error often means you're not matching your access requirements in the API console - i.e. if you have IP or referrer restrictions configured.
Just remove your developer key and add the scope
'www.googleapis.com/auth/userinfo.email',
'www.googleapis.com/auth/userinfo.profile',
'www.googleapis.com/auth/plus.login',
'www.googleapis.com/auth/plus.me'));
I'm getting errors while running Google Glass quick starter PHP project using Mirror API. I've seen a similar question in the forum but in my case i've enabled the Mirror api in the Google API console. We are working in a group using a new Gmail account(that aptly describes our group) which has been tied up to our Glass very recently.
In the error log it says:
Uncaught exception 'Google_ServiceException' with message 'Error calling GET
https://www.googleapis.com/mirror/v1/timeline?maxResults=3&key=xxxxxxxxxxx: (403)
Access Not Configured'
Any help in this regard would be very much appreciated.
Thanking the experts in advance.
The complete error log:
PHP Fatal error: Uncaught exception 'Google_ServiceException' with message 'Error calling GET https://www.googleapis.com/mirror/v1/timeline?maxResults=3&key=xxxxxxxxxxxxxx: (403) Access Not Configured' in /var/www/mirror-quickstart-php/google-api-php-client/src/io/Google_REST.php:66\nStack trace:\n#0 /var/www/mirror-quickstart-php/google-api-php-client/src/io/Google_REST.php(36): Google_REST::decodeHttpResponse(Object(Google_HttpRequest))\n#1 /var/www/mirror-quickstart-php/google-api-php-client/src/service/Google_ServiceResource.php(186): Google_REST::execute(Object(Google_HttpRequest))\n#2 /var/www/mirror-quickstart-php/google-api-php-client/src/contrib/Google_MirrorService.php(434): Google_ServiceResource->__call('list', Array)\n#3 /var/www/mirror-quickstart-php/index.php(142): google_TimelineServiceResource->listTimeline(Array)\n#4 {main}\n thrown in /var/www/mirror-quickstart-php/google-api-php-client/src/io/Google_REST.php on line 66
And in the index.php line 142 shows:
//Load cool stuff to show them.
$timeline = $mirror_service->timeline->listTimeline(array('maxResults'=>'3'));
I'm getting this error when I'm running twitter autoreply bot (https://gist.github.com/820281)
Fatal error: Uncaught exception 'OAuthException' with message 'Invalid auth/bad request (got a 404, expected HTTP/1.1 20X or a redirect)' in /home/.../public_html /twitterautoreply.php:82 Stack trace: #0 /home/.../public_html/twitterautoreply.php(82): OAuth->fetch('https://twitter...', Array, 'POST') #1 /home/.../public_html/twitterautoreply.php(68):TwitterAutoReply->sendReply(Object(stdClass), 'check out this ...') #2 /home/.../public_html/run.php(13): TwitterAutoReply->run() #3 {main} thrown in /home/.../public_html/twitterautoreply.php on line 82
I have already checked authorization keys and secret, and it's not that.
Not sure if it is related, this week Twitter API team removed "version zero" of the API.
URLs without any version get 404 errors.
Looking at the TwitterAutoReply class on github:
const UPDATE_URL = 'https://twitter.com/statuses/update.json';
Use of statuses/update on API documentation (version 1) :
http://api.twitter.com/1/statuses/update.format
HI, I have a debian server.
I am using xmpphp library for bot development.
When i create a bot using xmpp file its working fine but when i try to use bosh it generates a fatal error.
Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /var/www/testlib/XMPPHP/BOSH.php:75
Stack trace:
0 /var/www/testlib/XMPPHP/BOSH.php(75): SimpleXMLElement->__construct('')
1 /var/www/testlib/index.php(14): XMPPHP_BOSH->connect('myserver')
2 {main}
thrown in /var/www/testlib/XMPPHP/BOSH.php on line 75
Please help me on this
Thanks
Not sure but could it be related to this known bug:
http://bugs.php.net/bug.php?id=42682