I tried to update the due date with rest API call out but is not updating on google and there is no error and exception for that too.
I tried this from google developer console but it is not updating on google and there is no error too.
It looks like if you do not add the id on the Body you get a 400 response error, it shouldn't be like this, but this should definitely work:
{
"due": "2019-12-25T00:00:00.000Z",
"id": "ekFnZHl5eGt0MG5oaFZZQg"
}
Related
Hi I'm trying to integrate paystack in laravel 8 but I'm click paynow button it give following error
Client error: POST https://api.paystack.co/transaction/initialize resulted in a 404 Not Found response:
{
"status": false,
"message": "Invalid Split code."
}
anyone can help how can i solve this
thanks
Can you share the request body? It looks like you're trying to pass a split code when you're initializing the transaction, but the code you're passing either:
Doesn't exist on that integration
Exists on the integration but maybe in test mode, and you're using your live keys (or in live mode and you're using your test keys)
We've built back in 2017 or so a scheduled script that tests bunch of URIs against Google's AMP validation API.
Haven't checked the script in ages, but recently one of our users complained that none of the URIs list AMP equivalents (the reason we used the API for, to look up AMP versions of the pages).
Now, looking at Google's documentation and testing our JSON payload with the embedded test panel there, everything works.
But when doing the same data from our servers against the API endpoint they list, we get 404 error. Actually, just copy/pasteing the API endpoint URI to a browser returns 404, too, which is kinda unexpected.
Is there something we're missing or has Google simply shut down the service, without notifying on their documentation page about it, or..?
I am simply posting basic JSON payload with URIs that I want to check if they have AMP version available, as, for example, this:
{
"urls": [
"https://www.dailymail.co.uk/sport/football/article-6729017/Is-VAR-working-change-Reporters-analyse-video-technology-football.html?ns_mchannel=rss&ns_campaign=1490&ito=1490",
"https://www.talouselama.fi/uutiset/te/2223797c-6be5-3be1-b1aa-f774ff23d63e","https://www.theguardian.com/uk-news/2019/feb/21/teenager-shot-in-fight-on-london-tube-barking-hammersmith-and-city-line"
],
"lookupStrategy": "FETCH_LIVE_DOC"
}
to:
https://acceleratedmobilepageurl.googleapis.com/v1/ampUrls:batchGet
with POST, having service key as the query parameter (?key=xxx).
Whats we get in return, is 404. No errors, no JSON data, just plain old HTML formatted 404.
The service is fine and your query should return:
{
"ampUrls": [
{
"originalUrl": "https://www.theguardian.com/uk-news/2019/feb/21/teenager-shot-in-fight-on-london-tube-barking-hammersmith-and-city-line",
"ampUrl": "https://amp.theguardian.com/uk-news/2019/feb/21/teenager-shot-in-fight-on-london-tube-barking-hammersmith-and-city-line",
"cdnAmpUrl": "https://amp-theguardian-com.cdn.ampproject.org/c/s/amp.theguardian.com/uk-news/2019/feb/21/teenager-shot-in-fight-on-london-tube-barking-hammersmith-and-city-line"
},
{
"originalUrl": "https://www.dailymail.co.uk/sport/football/article-6729017/Is-VAR-working-change-Reporters-analyse-video-technology-football.html?ns_mchannel=rss&ns_campaign=1490&ito=1490",
"ampUrl": "https://www.dailymail.co.uk/sport/football/article-6729017/amp/Is-VAR-working-change-Reporters-analyse-video-technology-football.html",
"cdnAmpUrl": "https://www-dailymail-co-uk.cdn.ampproject.org/c/s/www.dailymail.co.uk/sport/football/article-6729017/amp/Is-VAR-working-change-Reporters-analyse-video-technology-football.html"
}
],
"urlErrors": [
{
"errorCode": "NO_AMP_URL",
"errorMessage": "No AMP URL for the request URL.",
"originalUrl": "https://www.talouselama.fi/uutiset/te/2223797c-6be5-3be1-b1aa-f774ff23d63e"
}
]
}
I am trying to access an api function, for example I want to access the login function, I get the following error:
"message": "An internal error occurred during your request!",
Looking in the log file, the following log is there:
ERROR 2017-10-09 17:01:37,296 [11 ]
nHandling.AbpApiExceptionFilterAttribute - Processing of the HTTP
request resulted in an exception. Please see the HTTP response
returned by the 'Response' property of this exception for details.
System.Web.Http.HttpResponseException: Processing of the HTTP request
resulted in an exception. Please see the HTTP response returned by the
'Response' property of this exception for details.
I am using Postman to test. My URL is https://localhost:44347/api/Account/Authenticate. My header has Context-Type as "application/json" and in my Body I have the loginModel formatted as
{
"tenancyName": "tenantname",
"userNameOrEmailAddress": "admin",
"password": "123qwe"
}
Am not sure how else to proceed on this. Any ideas please? I have swagger installed as well.
I am using MVC + AngularJS template. I have not changed anything, just the default project.
Appreciate the assistance.
I have tested with Fiddler and it works correctly.
Note: make sure you type Content-Type correctly, on the question you typed Context-Type
Make a POST request! You may be missing this.
I am not able to get an item through Google Storage Service API:
Google.Apis.Storage.v1.StorageService service;
// ...
Google.Apis.Storage.v1.ObjectsResource.GetRequest request = service.Objects.Get(bucketName, uri);
request.Alt = StorageBaseServiceRequest<GCSObject>.AltEnum.Json;
Google.Apis.Storage.v1.Data resp = request.Execute();
I am getting GoogleApiException
"An Error occurred, but the error response could not be deserialized."
regardless of there specified item exist or not in the storage.
"request.ExecuteAsStream()" returns "Not Found" text only.
The same issue occurs when trying to set ObjectAccessControl through service.ObjectAccessControls.Insert() method.
Do you have any suggestions?
P.S. I am able to upload an item though without any problem.
Check if your URI/Object contains characters that need escaping like '/'.
It might lead (in .NET4) to response not found 404, meaning the object not found on Google cloud.
The google api for .net cannot serialize this error, so you get this useless message ("error response could not be deserialized").
To fix it, add to the web config:
<uri>
<schemeSettings>
<add name="https" genericUriParserOptions="DontUnescapePathDotsAndSlashes" />
</schemeSettings>
</uri>
I explained the scenario here: Slash, Google Cloud Storage & .NET4.
Recently I started working with Google Place API. I have created one server key for my current project. As I have to use Place API so I turned it on in Service page.
When I am using the following URL in my browser, I get the desired output in the browser.
https://maps.googleapis.com/maps/api/place/textsearch/json?query=restaurants+in+Sydney&sensor=true&key=MY_API_KEY
But if I use the URL above in my current C++ project or with the curl command on ubuntu terminal, I get the following error.
{
"error_message" : "An internal error was found for this API project.",
"html_attributions" : [],
"results" : [],
"status" : "REQUEST_DENIED"
}
What should I do to correct this behaviour?
if you used the uri
https://maps.googleapis.com/maps/api/place/textsearch/json?query=restaurants+in+Sydney&sensor=true&key=MY_API_KEY
you sending a request to google, logging for the account with the key 'MY_API_KEY'
i guess you need to register for a key and use it as parameter value