When I try to send in a POST to create a new webhook I receive a bad request error:
{
"error": {
"docs": "https://developer.surveymonkey.com/api/v3/#error-codes",
"message": "URL https://ws.nxturn.com/NXT_survey_response did not return a success status code.",
"id": "1000",
"name": "Bad Request",
"http_status_code": 400
}
}
However, when I try to send a HEAD to my server I receive a 200 response back as expected. I am not sure how I can troubleshoot this?
Has anyone else resolved this issue?
That URL does not support HTTPS
Related
I'm trying to use a DeltaLink to get Event changes from a Calendar. It works good but sometimes I get an HTTP 400 - ErrorCannotUseItemIdForFolderId error.
Oddly enough, I get a success response when I send the same DeltaLink the next day.
What's wrong with this DeltaLink?
Request:
GET https://graph.microsoft.com/v1.0/users/{id}/calendars/{id}/calendarView/delta?$deltatoken={token}
Response:
"error": {
"code": "ErrorCannotUseItemIdForFolderId",
"message": "Expected a folder Id but received an item Id.",
"innerError": {
"request-id": "a704ea5f-2677-4f38-88c0-aaca240b4cb8",
"date": "2019-05-30T16:40:46"
}
}
I'm trying to create a subscription to changes on the Inbox email folder.
The POST content is:
{
"changeType": "created,updated,deleted",
"notificationUrl":"https://private_webhook_url",
"resource":"/me/mailFolders('inbox')/messages",
"expirationDateTime":"2018-12-22T12:08:59Z",
"clientState":"a_client_state"
}
The result I get is a 500 Server Error with the following response body:
{
"error": {
"code": "ExtensionError",
"message": "Operation: Create; Exception: [Status Code: InternalServerError; Reason: Internal Server Error]",
"innerError": {
"request-id": "5f581bcb-db5c-4842-b408-ee58d614cf98",
"date": "2018-12-19T13:39:01"
}
}
}
I wonder if I'm doing something wrong or if this is a problem with the Graph API. Is anyone able to help me?
Thanks in advance.
Does your clientState have CRLF characters because that is the error we see on the server side? Can you please try with a different value of clientState and confirm if it is working?
This is the api: https://slack.com/api/channels.history
Request:
token=&channel=(Removing the token and channel name for privacy)
Response:
{
"ok": false,
"error": "not_authed"
}
The token I have provided is correct, can someone tell what can be the issue here?
When trying to send a CURL request to:
https://preview.twilio.com/porting/PortOrders
I get the following response when using our Master account credentials:
{
"code": 20404,
"message": "The requested resource /porting/PortOrders was not found",
"more_info": "https://www.twilio.com/docs/errors/20404",
"status": 404
}
Has the porting API url changed and the docs haven't been updated?
I'm trying to delete followiing comment z12mdhjgxrfgtpf3d231jrz5vo3jdj0lo on this video but the response code is 400. I'm using token of the channel's admin with https://www.googleapis.com/auth/youtube.force-ssl scope as it required by documentation.
The request is:
DELETE https://www.googleapis.com/youtube/v3/comments?id=z12mdhjgxrfgtpf3d231jrz5vo3jdj0lo&alt=json
{
"query_params": {
"id": "z12mdhjgxrfgtpf3d231jrz5vo3jdj0lo",
"alt": "json"
}
}
The response:
{
"error": {
"errors": [
{
"domain": "youtube.comment",
"reason": "processingFailure",
"message": "The API server failed to successfully process the request. While this can be a transient error, it usually indicates that the requests input is invalid.",
"locationType": "parameter",
"location": "id"
}
],
"code": 400,
"message": "The API server failed to successfully process the request. While this can be a transient error, it usually indicates that the requests input is invalid."
}
}
What is wrong with the request?
That's token debug info:
{
issued_to: "493985796851.apps.googleusercontent.com",
audience: "493985796851.apps.googleusercontent.com",
user_id: "109704411339866376304",
scope: "https://www.googleapis.com/auth/plus.me https://www.googleapis.com/auth/youtube.force-ssl https://www.googleapis.com/auth/youtube.upload",
expires_in: 2452,
access_type: "offline"
}
The reason you're not able to delete the comment is that you're using Comments.delete to remove comment which was written by other users . Comments.delete only deletes your own comments in your video.
To delete comment of other users, use Comments.setModerationStatus and set moderationStatus to "rejected".
So just repeat what you did but this time using Comments.setModerationStatus. There's a Try-it in the link for testing purposes.