I can't access Twilio Studio Execution Contexts via PHP library? - twilio

I have a simple flow where callers record a message using the "Record Voicemail" widget, then I post the execution's Flow SID, the Execution SID, and the Call SID to my PHP app so I can download the recorded MP3.
The PHP app successfully gets the POSTed data, but when I try to use:
$execution_context = $client->studio->v2->flows("$flowSid")
->executions("$executionSid")
->executionContext()
->fetch();
I'm getting this error in the logs, isn't super clear (to me, anyway :-) :
mod_fcgid: stderr: PHP Fatal error: Uncaught Twilio\Exceptions\RestException: [HTTP 404] Unable to fetch record: The requested resource /Flows//Executions//Context was not found in /home/me/public_html/vendor/twilio/src/Twilio/Version.php:88
The context is available if I enter that same FlowSid and ExecutionSid into the Console API Explorer, I just don't seem to be able to get it in my app using the PHP library.
Thanks for any help or suggestions!

Related

MS Graph API Error: 'Failed to execute Skype backend request GetThreadsS2SRequest

I'm getting the following error message.
Failed to execute Skype backend request GetThreadsS2SRequest
when trying to Add, Update or Delete channels using MS Graph API for Teams. The calls were working fine for a while but now suddenly this error comes up. This happens particularly when the channel type is private. Any help would be much appreciated. Thanks.

Error uploading actions to Gactions ( Google Assistant )

I am receiving the following error on uploading the actions.json to gactions using Windows as well as Linux.
ERROR: Failed to update the app for the Assistant
ERROR: The caller does not have permission
2019/04/13 13:56:47 Server did not return HTTP 200
Account used to upload action is same as the one used to create project.
I am able to get the verification code and once I paste back in terminal to authenticate it gives the above error.
Can someone please guide what is to be done exactly, I am using the below guide on google
https://developers.google.com/assistant/sdk/guides/library/python/extend/custom-actions

Microsoft Face API - Error 401, iOS

I have used the Subscription ID in my App and am getting following error at runtime.
Error Domain=POFaceServiceClient error - http response is not success :
{"error":{"code":"Unspecified","message":"Access denied due to invalid subscription key. Make sure you are subscribed to an API you are trying to call and provide the right key."}}
Code=401 "(null)"
I taken the ID from the Keys after creating a new service. I even regenerated them. Every time I run the program, same error is thrown.
Hope you guys have a fix.
Cheers!
I could fix it finally. :)
Over creating the API KEY, just make sure that you supply for westus server and the endpoint should be:
https://westus.api.cognitive.microsoft.com/face/v1.0
In my case, it works.

Office365 API App registration fails: Bad Request

When registering an app at https://dev.office.com/Getting-Started/office365Apis, I get the following error:
The following error occurred while processing your request:
ERROR: Request_BadRequest - Invalid value found for property 'identifierUris' of resource 'Application'.
I have registered an another app successfully before with the same account. The URIs for my app are https.
How can I overcome this problem?
sorry to hear you're having trouble. Our team is investigating and will update this answer once we have it identified.
Is it possible to share the App Name and/or Redirect URI that your are using, as well as the platform chose? Understand if it's not. Are there any non-alpha numeric characters?
In the meantime, you can register your app manually through Azure AD. Here is how: https://msdn.microsoft.com/en-us/office/office365/howto/add-common-consent-manually

Getting error while taking access of my personal drive rails

connection = GoogleDrive.login("vg123#gmail.com","acbshaka" )
*** GoogleDrive::AuthenticationError Exception: Authentication failed for vg123#gmail.com: Response code 404 for post https://www.google.com/accounts/ClientLogin: https://developers.google.com/accounts/docs/AuthForInstalledApps
Please Help me I just want to upload csv file to my personal drive from rails code on server side in background process.................Please help me
Use OAuth instead of it, login is deprecated so long back

Resources