'ConnectionAborted Error' on Uploading new Appbundle to Forge - autodesk-forge

I am trying to upload a new appbundle. I can register the appbundle and it goes through fine, but when I try to upload the appbundle I get this error:
requests.exceptions.ConnectionError: ('Connection aborted.', error(10054, 'An existing connection was forcibly closed by the remote host'))
Is it s server side error? How can I get around it?

In turned out that the issue was I was adding the Forge Auth header to the call and I guess it was causing the failure. Wish the error message was more helpful.

At this point you are talking to Amazon AWS S3 directly. None of our code is in the picture. It could be a temporary glitch in S3 (and then your should simply retry). Or it is possible that your request is malformed. See https://forge.autodesk.com/en/docs/design-automation/v3/reference/http/appbundles-POST/

Related

Forge server authentication error 2 Legged

I am new to forge. I have been trying to create a basic server and authentication using nodejs by following exact steps in the youtube training videos. But i am facing errors in the initial phase itself getting an error code: ECONNRESET. I have a feeling that my firewall is blocking the servers but not able to make anything concrete out of this. The url that i tried hitting is "http://localhost:3000/api/forge/oauth/token". For some reason it always goes to catch block. Kindly let me know how to debug the error, and figure out the urls that need unblocking if necessary.

Bottlenose 400 - How To Parse HTTPError

I'm getting a 400 error when testing the examples provided by Bottleneck.
I double checked that I'm using the correct Associate Tag with the right region (do I include the '-20' in the AWS_ASSOCIATE_TAG?), I tried setting my Ubuntu's timezone (running on a VM) to GMT to follow the api_url builder (below) but that didn't help.
I checked the credentials using AWS-Cli and I was able to pull all EC2 instances without a permission error.
I tried reading the HTTPError using e.read, but I'm getting a class bytes object which I can't further investigate.
Is there a way to parse the error into XML or a simple string so that I could understand what the error actually is? Did anyone else encounter this problem and can think of a solution?
AWS Error codes
query = {
'Operation': self.Operation,
'Service': "AWSECommerceService",
'Timestamp': time.strftime(
"%Y-%m-%dT%H:%M:%SZ", time.gmtime()),
'Version': self.Version,
}
I was skimming the docs and so I missed a crucial element - I was using AWS' API credentials, while the ones required belong to Amazon Product API.
To access those, please use this link.

Autodesk DM API: Is Retry appropriate here?

I've got an application that's been working for a long time.
Recently we created a new app/keys for it, and it's behaving strangely.
(I did figure out the scope requirements had been put in place. I am requesting bucket:create bucket:read data:read data:write).
When I upload a file to a bucket, I've traditionally called done the call to get the object details afterwards, to verify that it's successfully uploaded.
With the new key, I am intermittently getting this error:
GetObjectDetails: InternalServerError {"fault":{"faultstring":"Execution of ServiceCallout servicecallout-auth-acm-request failed. Reason: timeout occurred servicecallout-auth-acm-request","detail":{"errorcode":"steps.servicecallout.ExecutionFailed"}}}
Is this something I should be re-trying with a sleep in between? or is it indicative of something wrong with the upload?
(FYI - putting in a retry seems to have have resolved this for me, but I still don't know if that's the right answer - and if this issue might happen on other calls).
It could be that the service requires a slight delay between a put object and a get, so I would suggest either use a timer or a retry as you mentioned. However a successful response from the upload should be enough to ensure your object has been placed to the bucket without the need to double check.

KeePass, GoogleSync: "Error occurred while sending a direct message or getting the response"

When using KeePass with the GoogleSync plugin (to sync the keypass db with Google Drive), I somehow messed up my config and received this message on every sync attempt:
Error occurred while sending a direct message or getting the response
I think what I actually did was try to switch my Google API credentials (from one API key to another)
The user config saves a Google auth key. In my case I changed the API credentials I wanted to use, but it could become corrupted in other ways and there doesn't seem to be a mechanism in KeePass/GoogleSync to rectify it.
Exit KeePass
Delete (or backup to a different name) the file %LOCALAPPDATA%\Dominik_Reichl\KeePass[...]\[version]\user.config
Restart KeePass and it'll regenerate it with the correct config
Found my reference here:
http://sourceforge.net/p/kp-googlesync/discussion/general/thread/5dc763ba/

Glassfish Server 4 post too large error

I have a problem with GF4 while calling a web service I coded using http post. GF4 responds with a "Post too large" error. My post data is about 3MB.
Here is the GF4 debug log:
WARNING: Post too large
WARNING: StandardWrapperValve[obx2oex]: Servlet.service() for servlet obx2oex threw exception
java.lang.IllegalStateException: Post too large
at org.glassfish.grizzly.http.server.Request.parseRequestParameters(Request.java:2024)
at org.glassfish.grizzly.http.server.Request.getParameter(Request.java:1052)
at org.apache.catalina.connector.Request.getParameter(Request.java:1547)
at org.apache.catalina.connector.RequestFacade.getParameter(RequestFacade.java:448)
...
I already googled for this issue and found some help that encourages to modify the server configuration. I edited the following part in the domain.xml:
<http-service>
<access-log></access-log>
<virtual-server id="server" network-listeners="http-listener-1,http-listener-2"></virtual-server>
<virtual-server id="__asadmin" network-listeners="admin-listener"></virtual-server>
<property name="maxPostSize" value="2097152"></property>
</http-service>
and restarted the server. But the error still occurs.
Does anybody know, how to solve this "post too large" issue?
Thanks for your help!
PS: I just saw the starting log of the GF4 and it told me:
WARNING: Unsupported http-service property maxPostSize is being ignored
So where should I tell GF4 to accept large post data?
Open Glass Fish administrative console, select
Configurations - server config - Network Config - Network Listeners
- http-listener-1
and
tab HTTP.
There is parameter Max Post Size. Increase it as you wish.
Look screenshot
My first attempt coding my webservice was a servlet that accepts data via POST parameter of HTTP. That lead to the "Post too large" error, when sending more than 2MB.
I got a suggestions to code it as REST service. It is very strange, but now it works with more than 2MB. Even while the data is sent via http post.
Maybe it should help someone.
But nevertheless I'd like to know, where you can set the maxPostSize value in GF4 server.