SEMRush API ERROR 135 :: API REPORT TYPE DISABLED - api

I have code which is calling SEMRush API and it is working fine for a while, and then suddenly I stared getting 403 on API call with SEMRush error:
ERROR 135 :: API REPORT TYPE DISABLED
The API endpoint which I am calling is:
http://us.api.semrush.com/?action=report&type=phrase_this&key={xxxxxx}&export=api&export_columns=Ph,Nq,Cp,Co,Nr&phrase=sport
I cannot find anything about this error in their documentation.
Please does anyone know what this error means and how to resolve it?

Try updating your API call to the newer method. According to their documentation the database is no longer a subdomain and rather a parameter.
So instead of http://us.api.semrush.com/?action=report&type=phrase_this&key={xxxxxx}&export=api&export_columns=Ph,Nq,Cp,Co,Nr&phrase=sport
Try http://api.semrush.com/?action=report&type=phrase_this&key={xxxxxx}&export=api&export_columns=Ph,Nq,Cp,Co,Nr&phrase=sport&database=us

Related

Call API via uri module in Ansible

While calling the api <towername>/api/v2/job_templates/<templ_name>/launch via uri module on the localhost, I am getting error as
Status code was 500 and not [201]: HTTP Error 500: Internal Server Error
I am passing the below attributes in the playbook:
method, validate_certs,status_code, return_content, body_format,user, password, force_basic_auth.
Please advise
Body attribute was missing, once I updated, it worked fine.

How to solve this error message to get access token using Sonos

I followed the sound experience guideline to set up environment and authorization. When I try to get a new access token, this error keeps popping up. I wasn't sure what it means. I'm following exactly the same step as the guide, This is the error:-
An error occurred while processing your request.
Reference #97.6d06d217.1539357275.34c5f2e

What could be the reason for Okta Log Api giving internal Server Error 500 through code but giving result when run from Postman

I have a windows service which hits Okta Event Api
http://developer.okta.com/docs/api/resources/events.html
Now I have changed code to hit Okta Log Api
http://developer.okta.com/docs/api/resources/system_log.html
Problem : While Log api Get request works fine from postman tool it gives "Internal Server Error 500" when i run it from Code. The previous Event Api works perfectly fine from code and postman both.
This is what I get in response:
{"errorCode":"E0000009","errorSummary":"Sorry, there's been an error. We aren't sure what caused it, but we've logged this and will work to address it. Please try your request again.","errorId":"7f997bbe-7a31-4431-9f42-ae40db5200ac"}
What could be a possible reason for this?

401 unauthorized error while creating object in back4app via Temboo

I am creating an object in parse (using back4app parse server for this).
I get the following error when I run the choreo in temboo.
A HTTP Error has occurred: The remote server responded with a status
code of 401. Typically this indicates that an authorization error
occurred while attempting to access the remote resource. The data
returned from the remote server was: {"error":"unauthorized"} . The
error occurred in the HTTPSend (Parse) step.
That 401 error might indicate that the Id or Keys are not correct. Maybe it could be a good idea to double check them.
Also, what is the host and path for the API Request that you're doing with Temboo (I'm not acquainted with it)? If you're not using the correct ones it might cause problems too.
Make sure you're reaching something like this:
https://parseapi.back4app.com/classes/Your_Class_Name

"Sorry, an error occurred while processing this request" instagram api python-instagram

I'm using python-instagram library to get access to instagram api. But when I run my app (flask rest api application), my auth method which use InstagramAPI and get_authorize_login_url method raise 500 error:
raise OAuth2AuthExchangeError("The server returned a non-200 response for URL %s %s %s" % (url, response['status'], content))
OAuth2AuthExchangeError: The server returned a non-200 response for URL https://api.instagram.com/oauth/authorize?scope=basic&redirect_uri=http%3A%2F%2Fsocialservice.test.5-soft.com%3A8515%2Finstagram%2Fauth&response_type=code&client_id=c5095d88cee14bac91a9341e6e82ff8f 500 Sorry, an error occurred while processing this request.
In my local machine it works without any problems but in the production server with different IP I've got this problem.
I would be very appreciative if someone can help to solve me this problem
Thanks in advance,
Ron
Please clarify:
In my local machine it works without any problems but in the production server with different IP I've got this problem.
How can you be performing authorization on your local machine? Instagram's API requires a public url for redirect_uri.
Next, I haven't found any evidence to verify this, but I don't believe you can specify a custom port in your callback url (you've provided http://socialservice.test.5-soft.com:8515/instagram/auth).
Last, assuming it's your callback server that is the problem, that error usually occurs when you aren't returning the correct response back to Instagram. The server needs to echo out only the value of the GET parameter code as plaintext.
If I browse to here: http://socialservice.test.5-soft.com:8515/instagram/auth?code=test I get no response, which is likely the cause of your error.