On my http/grpc transcoded API I'm trying to return a 423 error under some given circumstances, but haven't found a rpc.Code to match the 423 error.
The closes I can think about would be: PERMISSION_DENIED(7), which returns a 403 error code, not the 423 that I would like to get back.
Any idea how I can overcome this limitation?
I'm using envoy.grpc_json_transcoder.
Thanks
Related
So the problem is I had a code running nicely for an automation that got the number of Googlebot crawl errors. I was using the SearchconsoleR package for this.
Recently I'm assuming that due to the changes in Search Console this doesn't work anymore. Has anyone had (and solved) this problem till now?
So the previous code was working finely for months:
Errors <- crawl_errors(website, category = "all", platform = c("web"), latestCountsOnly = T)
And now I get the following error code:
Request failed [404]. Retrying in 1 seconds...
Request failed [404]. Retrying in 2.4 seconds...
2019-05-15 14:41:02> Request Status Code: 404
Error : lexical error: invalid char in json text.
Not Found
(right here) ------^
Not Found
Error: lexical error: invalid char in json text.
Not Found
(right here) ------^
In addition: Warning message:
No JSON content found in request
Tried looking into the documentation of the package but didn't find any relevant updates yet. If anyone has any pointers they would be greatly appreciated.
Thanks in advance
I'm afraid this functionality got removed from the Search Console API.
I've been unable to find a list of PuTTY (psftp.exe) exit values or return codes.
The only thing I found is this: https://the.earth.li/~sgtatham/putty/0.67/htmldoc/Chapter10.html#errors, but I need the return codes.
Your help is appreciated.
For most programs, there isn't generally a lot of informational content in exit codes. If you're trying to automate detailed error handling (why is your question tagged with java and c#?) you may need to parse error messages.
Looking at the source code, it appears that it returns 1 if there is a connection error or if it is unable to open a batch file, 2 if a command fails in batch mode, and 0 otherwise.
PSFTP has these exit codes:
0 - success
1 - fatal error
2 - command error (when -be is not used)
I use robot framework at following environment.
Python 2.7.6
robotframework 2.8.7
Ubuntu 14.04.3 LTS
I test REST API, with keyword like this.
MyKeyword
Send Request -> Check Response Status Code -> Return Response content
And I use this keyword in negative case like followings.
Run Keyword And Expect Error 400 != 201 MyKeyword #args
In this case, if status code is 401, robot fails with this messages.
Expected error '400 != 201' but got '401 != 201'.
But I want to check that request will be rejected because of client reason,
so I wish status code were 40X.
How can I set Run Keyword And Expect Error ambiguous expected message?
I think you need to make use of wildcard characters as per the documentation - http://robotframework.org/robotframework/latest/libraries/BuiltIn.html#Run%20Keyword%20And%20Expect%20Error
I've never used it before but what I think you need change it to this:
Run Keyword And Expect Error 40? != 201 MyKeyword #args
Perhaps I've misunderstood the docs as I've never used this before though, in which case I would probably look to catch all errors:
Run Keyword And Expect Error * MyKeyword #args
It looks a little strange to me what you're doing though, should you not be using the variable the response result is returned in and checking against that? i.e. ${response} != 40?
I am trying to run Meteor on my computer and it does not work.
I get the exit code 8 + another error about not being able to allocate arraybuffer.
The error details are way too long for me to put everything here...
Do you have any ideas how to solde it?
Thanks in advance
I am trying to get some data in json format in using RCurl.
I have to use POST to enter the username and password such as:
postForm(url1, user=x$USERNAME, pass=x$PASSWORD)
I get the following error:
Error in function (type, msg, asError = TRUE) :
SSL read: error:00000000:lib(0):func(0):reason(0), errno 54
If I researched the correct error number 54 from the libcurl site:
CURLE_SSL_ENGINE_SETFAILED (54)
Failed setting the selected SSL crypto engine as default!
If this is the correct error how would I select the SSL engine?
Sorry, but the conclusion about this error is wrong. The output you see is from lib/ssluse.c in libcurl's source code and the "errno" mentioned there is not the libcurl error code but the actual errno variable at that time. I'm not sure what help we can get by knowing it, but 54 in my system equals EXFULL.
You should rather check the return code from the libcurl function that fails to get the proper libcurl error code but I guess you might see CURLE_RECV_ERROR simply because libcurl got tis SSL problem when receiving data.
Unfortunately that error string from openssl is not very helpful and I can't tell why you got it!