Registrering a bot fails asking a code parameter - bots

I registeres a bot on:
https://dev.botframework.com
There is a test function. Whn I click on the button i get this message:
BadRequest
{
"Message": "The WebHook verification request must contain a 'code' query parameter."
}
What does it mean? I have registered several bot but never had this issue.
Thanks

well, I deleted the web apps and redeployed
now everything is OK
I don't know why

Related

Getting 404 on 2Checkout Order Creation

I have been struggling to create order on 2checkout using EES_TOKEN (2pay.js)
When I execute the api request at https://api.2checkout.com/rest/6.0/orders, I am getting
error_code: 'RESOURCE_NOT_FOUND', message: 'Resource not found' }
Before this I am creating customer, and that's working fine
So I contacted the support and they gave me this reply (Attaching photo)
I can feel, how stupid it is :)

webhook request timeout dialogflow v2 migration ( webhook code:4)?

I have dialogflow application w.r.t. v1 currently,
we are working on the migration to v2,
so during the process, when testing the changes w.r.t. dialogflow console,
we found issues like webhook request time,
please find the diagnostic info. from the console,
"webhookStatus": {
"code": 4,
"message": "Webhook call failed. Error: Request timeout."
}
diagnostic info. shows tabs like "raw API response", Fulfillment request and fulfillment status (Webhook call failed. Error: Request timeout.), but not showing fulfillment response tab here.
Can anybody help/guide me on this for the resolution,
as of now I didn't see any specific solution in this forum & so I am posting
this one.
please let me know if anybody needs more info. I can provide on this also.
The expected result should be displayed in https://console.dialogflow.com/,
but currently shows Default response as "not available".

Outlook REST API is returning 404 for event in message

I have the following case:
I use the Outlook REST API (without any library) to visualize the users' emails - including Event invites. First, I make a call to get only the message properties and if the message has MeetingMessageType value, then another request is sent to:
https://outlook.office.com/api/v2.0/me/messages/<messageId>?$select=Microsoft.OutlookServices.EventMessage/MeetingMessageType&$expand=Microsoft.OutlookServices.EventMessage/event($select=Id,SeriesMasterId,iCalUID,Type,CreatedDateTime,LastModifiedDateTime,WebLink,Calendar,Start,End,IsAllDay,IsCancelled,Organizer,Attendees,Location,Subject,ResponseStatus,OnlineMeetingUrl,Recurrence,ResponseRequested)
to get the Event information and provide the customer with the option to respond to the invite.
The problem:
Since yesterday one of our clients reported that he can't see the event information. It turns out that the request for getting this information is returning 404.
The response body:
{
"error": {
"code": "ErrorItemNotFound",
"message": "The specified object was not found in the store., The process failed to get the correct properties."
}
}
The event is shown in the Outlook desktop mail client.
The client also shared that they have enabled ATP (advance threat protection) at his company. Not sure if this can have anything to do with the problem.
I see that other clients also have this problem.
Update:
I asked the user to try the following requests from the Outlook sandbox:
https://outlook.office.com/api/v2.0/me/messages/<messageId>
This request returns the EventMessage with "MeetingMessageType": "MeetingRequest".
Then when he tried accessing the Event:
https://outlook.office.com/api/v2.0/me/messages/<messageId>?$select=Microsoft.OutlookServices.EventMessage%2FMeetingMessageType&$expand=Microsoft.OutlookServices.EventMessage%2Fevent
The Outlook REST API returns 404.
For me, the same formatted requests work, so I can't really understand what is going on.
Please, any information will be well appreciated!

Chrome Extension identity: OAuth2 request failed: Service responded with error: 'bad request'

I followed https://developer.chrome.com/extensions/tut_oauth exactly step by step but I am stuck at
https://developer.chrome.com/extensions/tut_oauth#identity_permission
where after I execute my extension, instead of getting the token, I get the error:
Unchecked runtime.lastError while running identity.getAuthToken:
OAuth2 request failed: Service responded with error: 'bad request'
Please suggest what is the possible cause of this error.
tl;dr
Update the scopes to the following if its empty,
"oauth2": {
"client_id": "yourExtensionOAuthClientIDWillGoHere.apps.googleusercontent.com",
"scopes":["https://www.googleapis.com/auth/userinfo.email"]
}
People who were following the tutorial on OAuth2: Authenticate Users with Google
If you've landed into this problem, it is probably because it's 2020 and the documentation isn't updated.
The tutorial asks you to,
Include the "oauth2" field in the extension manifest. Place the generated OAuth client ID under "client_id". Include an empty string in "scopes" for now.
{
"name": "OAuth Tutorial FriendBlock",
...
"oauth2": {
"client_id": "yourExtensionOAuthClientIDWillGoHere.apps.googleusercontent.com",
"scopes":[""]
},
...
}
but never updates it before calling the identity API call to fetch the token.
Updating the scopes, with the following should fix the issue,
"scopes": ["https://www.googleapis.com/auth/userinfo.email"]
I think that's because the scope is empty. I was like you follow the article, but found the problem is from the scope area.
I changed the scope as suggested but the problem still persisted. Then I tried not only to reload the extension but also tried to update it and it worked in the end (errors next to Remove button went away and I am able to authenticate).
Honestly, I am not sure if it is the Update that did the magic or change the empty Scope that did the magic but here is an answer from a 2020 July user who got it working. :)
(PS, if you don't have that many Google friends, or your friends who don't bother to have image, likely your code will fail with data.photos[0].url in the next step, you just need to take care of that)

Instagram "this user does not exist" error in live mode

I'm getting the following error when hitting the get recent media endpoint of instagram:
"error_type": "APINotFoundError",
"code": 400,
"error_message": "this user does not exist"
Points to note:
1) App is in live mode, the basic permission has been approved. I didnt apply for any other permission.
2) Works fine for sandbox user
This is the exact URL i'm hitting:
https://api.instagram.com/v1/users/2147483647/media/recent/?access_token=
Am I missing something or do I have to explicitly do something to put the app into live mode ?
It probably means that the user id 2147483647 does not correspond to a valid Instagram user. I just tried on my end and I get the same response.
P.S: You should NEVER post your access_token in public posts such as these. You should mask it from the post ASAP.

Resources