Blogger API We're sorry, but the value for field labels was not valid - api

When I submit the following json format article to blogger
{
"title": "Title",
"content": "Content",
"labels":["adventviures", "3ds", "game", "nintendo", "bgr", "metroid", "to", "fox", "Balrog", "bgr", "avi", "review", "addicted", "pikmin", "balrog", "bngr", "bgra", "eshop", "new 3ds", "star", "pokemon", "balrogthemaster", "mario", "thoughts", "on"]
}
I get the following error message
"error": {
"errors": [
{
"domain": "global",
"reason": "invalid",
"message": "We're sorry, but the value for field labels was not valid."
}
],
"code": 400,
"message": "We're sorry, but the value for field labels was not valid."
}
Some other labels do not work
1."labels":["CauBeNguNgo","Xe Đua","GTA 5","Thành Trung Gaming","Xe Lamborghini","siêu xe đua","game offline","Cris Devil GamerGame Offline"]
2."labels":["Google israel","Google","entertainment","YouTube Japan 公式チャンネル","YTMA","YouTube","Science & Technology","エンタメ","entame","Awards","YouTube Japan","Music"]}
I would like to know if the blogger's labels comply with the rules, I do not find it
Please help me

Related

how can I manage custom errors coming from the server?

I use Jhipster with react as frontend with loopback as server side, I should show custom error ( ex. tax code already present in the archive).
this is format error
{
"error": {
"statusCode": 422,
"name": "UnprocessableEntityError",
"message": "The request body is invalid. See error object `details` property for more info.",
"code": "VALIDATION_FAILED",
"details": [
{
"path": "partitaIva",
"message": "Partita Iva già presente",
"code": "CUSTOM_ERROR",
"info": {}
}
]
}
}
There could be more errors too, like for a form.
I want to know how to display the error returned by server.

Get more than 100 tweets Postman/Twitter API v2

I'm using Postman and Twitter API v2 together, to pull data for a paper. I've loaded the "Get more than 100 tweets" library, but it's pagination doesn't seem to be working.
I keep getting this error (listed below, in bold):
"errors": [
{
"parameters": {
"pagination_token": [
"b26v89c19zqg8o3fpz8mukx3mf6m7ag90u7sjx2xy61kt"
],
"next_token": [
"1"
]
},
**"message": "At most one of [pagination_token, next_token] can be provided."**
}
],
"title": "Invalid Request",
"detail": "One or more parameters to your request was invalid.",

Sabre Instaflights Search One-way getting no results

I am facing an issue in calling Sabre Instaflights Search API Below are the two issues which I am facing.
No results if I send only departure date. https://api-crt.cert.havail.sabre.com/v1/shop/flights?origin=JFK&destination=LAX&departuredate=2019-01-30&onlineitinerariesonly=N&limit=10&offset=1&eticketsonly=N&sortby=totalfare&order=asc&sortby2=departuretime&order2=asc&pointofsalecountry=US
Below is the error response which i am getting.
{
"status": "Complete",
"reportingSystem": "RAF",
"timeStamp": "2019-01-22T13:33:45+00:00",
"type": "Application",
"errorCode": "WARN.RAF.APPLICATION",
"instance": "raf-darhlc005.sabre.com-8080",
"message": "No results were found"
}
Getting Date range error if the return date above 20 days https://api-crt.cert.havail.sabre.com/v1/shop/flights?origin=JFK&destination=LAX&departuredate=2019-01-30&returndate=2019-02-20&onlineitinerariesonly=N&limit=10&offset=1&eticketsonly=N&sortby=totalfare&order=asc&sortby2=departuretime&order2=asc&pointofsalecountry=US
Below is the error which I am getting.
{
"status": "NotProcessed",
"reportingSystem": "RAF",
"timeStamp": "2019-01-22T13:43:26+00:00",
"type": "Validation",
"errorCode": "ERR.RAF.VALIDATION",
"instance": "raf-darhlc006.sabre.com-9080",
"message": "Date range in 'departuredate' and 'returndate' exceeds the maximum allowed"
}
Please tell me how can fix these errors??

Unable to convert currency paypal pay API error

I am using paypal adaptive payment API.
https://svcs.sandbox.paypal.com/AdaptivePayments/Pay
Request payload
{
"actionType":"PAY",
"memo":"Example",
"preapprovalKey":"PA-4PV844316B104562R",
"receiverList":{"receiver":{"amount":"14.00","email":"reveiver.email#gmail.com"}},
"currencyCode":"CHF",
"requestEnvelope":{"errorLanguage":"en_US"},
"pinType":"NOT_REQUIRED",
"feesPayer": "SENDER",
"senderEmail":"sender.email#gmail.com",
"returnUrl":"http://www.google.com/?paypal=ok",
"cancelUrl":"http://www.google.com/paypal=cancel",
"clientDetails": {
"applicationId": "APP-80W284485P789543T"
}
}
Getting response
{
"responseEnvelope": {
"timestamp": "2018-11-05T20:45:14.602-08:00",
"ack": "Failure",
"correlationId": "1609b946b9c72",
"build": "50069244"
},
"error": [
{
"errorId": "520002",
"domain": "PLATFORM",
"subdomain": "Application",
"severity": "Error",
"category": "Application",
"message": "Internal Error",
"parameter": [
"Unable to convert currency"
]
}
]
}
If I send currencyCode:"USD" then it work fine But when i pass currencyCode:"CHF" Then it gives error in response. My all sandbox account currency is CHF. Till 26th Oct it's working but suddenly gives error when i check on 3rd Nov.
Base on my debugging, it happens when you have more than one receiver, currency is not USD and reverseAllParallelPaymentsOnError is set to true.
When reverseAllParallelPaymentsOnError is set to false, the transaction is pushing through.
Not a solution though, I'm still checking for other solution.

How can I test the Google Translate API with cURL?

I'm attempting to use cURL to test the Google Translate API to see if it will suit my needs. But when I run this
$ curl https://www.googleapis.com/language/translate/v2?key=mykeyhere&source=en&target=de&q=Hello
I receive this in response:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "required",
"message": "Required parameter: q",
"locationType": "parameter",
"location": "q"
},
{
"domain": "global",
"reason": "required",
"message": "Required parameter: target",
"locationType": "parameter",
"location": "target"
}
],
"code": 400,
"message": "Required parameter: q"
}
}
Any ideas what I am doing wrong?
(Also, I understand StackOverflow may not be the best place for the question. I am happy to request that this question be moved to a different StackExchange site if someone will be kind enough to suggest an appropriate site for this question.)
I ended up using this NPM package to test, and once I enabled billing in the Google Developer Console, things worked: https://www.npmjs.org/package/google-translate