Force 404 error for Coldfusion REST API - api

I've been developing an API for a ColdFusion app using their built in RESTful webservice. I'm running into a problem though with invalid url pathways. Normally if I hit an invalid directory such as https://myapp.com/invalid/path/ Coldfusion will throw a 404 but if I hit an invalid url under "/rest" such as https://myapp.com/rest/invalid/path/ then I get a blank 200 response and in my error logs:
"Application could not be found. - Application could not be found.
null The error occurred on line -1."
Instead of this behavior I want my application to throw a 404 when an invalid pathway is being hit. Any ideas on how to accomplish this?

Related

GET request to opensea API giving 403 error

I'm trying to retrieve the asset info from a specific collection using the asset endpoint.
Example:
https://api.opensea.io/api/v1/asset/0x1a92f7381b9f03921564a437210bb9396471050c/2000/?format=json
Now, if you open that on your browser, it works flawlessly, but on your app or postman it just gives a 403 error by CloudFlare.
This is not a 401 error and we shouldn't need an API key for this.
So what is going on and how do I fix this? Any ideas?

Load Runner => Action.c(1279): Error -26630: HTTP Status-Code=401 (Unauthorized) IIS

I'm receiving this error from load runner
Action.c(1279): Error -26630: HTTP Status-Code=401 (Unauthorized) for
xxxxxxxx
Even when I used browser in same time of using the tool I get 401 error.
ASP.NET Core application
IIS
even I used browser in same time of using the tool I get 401 error
What's your theory of what is happening and what testing have you done to validate your theory?

ASP.NET Core / HTTP Error 404.13 - Not Found

When i try to upload large files(>30Mb) to my server I get generic 404 error. But it does not allow me to render appropriate message("File too large") to make sure that user understands why upload fails.
So is there a way to catch this error before IIS returns a 404 response back to the user and return a different header with a custom error?
Because right not the only way for me to know that this error was due to a file size is thru analyzing server logs for the failed requests.
If not, is there a way to access the maxAllowedContentLength directive thru the controller to pass this value back to the ui so user can compare the content length before upload?

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

SEMRush API ERROR 135 :: API REPORT TYPE DISABLED

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