We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use retry function if API call is failed.
Below I have mention code:
def on_timer body = nil record = nil
begin res = RestClient::Request.execute request_options record, body = get_record(res)
rescue StandardError => err record = { "url" => @url, "error" => err.message } if err.respond_to? :http_code record["status"] = err.http_code || 0 else record["status"] = 0 end end
record_time = Engine.now record = parse(record, body) router.emit(@tag, record_time, record) end
Can you please help on that..
The text was updated successfully, but these errors were encountered:
How to use retry function if API call is failed. Below I have mention code: def on_timer body = nil record = nil begin res = RestClient::Request.execute request_options record, body = get_record(res) rescue StandardError => err record = { "url" => @url, "error" => err.message } if err.respond_to? :http_code record["status"] = err.http_code || 0 else record["status"] = 0 end end record_time = Engine.now record = parse(record, body) router.emit(@tag, record_time, record) end Can you please help on that..
Sorry, something went wrong.
No branches or pull requests
How to use retry function if API call is failed.
Below I have mention code:
def on_timer
body = nil
record = nil
begin
res = RestClient::Request.execute request_options
record, body = get_record(res)
rescue StandardError => err
record = { "url" => @url, "error" => err.message }
if err.respond_to? :http_code
record["status"] = err.http_code || 0
else
record["status"] = 0
end
end
record_time = Engine.now
record = parse(record, body)
router.emit(@tag, record_time, record)
end
Can you please help on that..
The text was updated successfully, but these errors were encountered: