405 error for PutObject after migrating to aws-sdk-go-v2 - aws-sdk-go-v2

I'm using the S3 API with an OpenStack container. When upgrading to the v2 SDK, I replaced s3manager.NewUploaderWithClient with manager.NewUploader. Also added a custom resolver that returns the OpenStack endpoint. When I run it now I get an error saying operation error S3: PutObject, https response error StatusCode: 405, RequestID: *, HostID: *, api error MethodNotAllowed: UnknownError". Does anyone have an idea what I could be missing?

Related

Sodapy HTTPError: 403 Client Error: Forbidden

I'm trying to connect to the openpayments data using the sodapy library. I have previously been able to connect with my code as is, but suddenly, today, I have been receiving the error below. I've checked that my openpayments account is still active and that I have the right key, but for some reason it's telling me there is an authorization error.
File "C:\Users\nrath\AppData\Local\Continuum\anaconda3\lib\site-packages\sodapy__init__.py", line 367, in _perform_request
_raise_for_status(response)
File "C:\Users\nrath\AppData\Local\Continuum\anaconda3\lib\site-packages\sodapy__init__.py", line 421, in _raise_for_status
raise requests.exceptions.HTTPError(http_error_msg, response=response)
HTTPError: 403 Client Error: Forbidden.
The current user doesn't have access to this view
Any ideas how to resolve this?

Aurigma PACKAGE UPLOAD ERROR - ERROR CODE 6

We are testing the trail package on QA server and we encountered the following issue.please help us to fix this issue
we tried uploading the folder of 2GB using HTML5 uploader, it is working in Chrome but in Mozilla Firefox v54 it is getting failed. we tried uploading 2Gb folder for 4 times but in all 4 times it failed. so we enabled the aurigma debug mode and then uploaded the 2GB folder it showed package uploader error.
[htmluploader_trace] [WARNING] Package upload error
{ errorCode: 6, errorMessage: "Internal Server Error [500]", responseText: "" }
In apache error log it showed
PHP Fatal error: Uncaught exception 'Exception' with message 'Upload
request is invalid.' in
/home/application/libraries/aurigma/ImageUploaderFlashPHP/UploadSession.class.php:142\nStack
trace:\n#0
/home/application/libraries/aurigma/ImageUploaderFlashPHP/UploadSession.class.php(32):
UploadSession->validateRequest()\n#1
/home/application/libraries/aurigma/ImageUploaderFlashPHP/UploadHandler.class.php(135):
UploadSession->processRequest()\n#2
/home/application/libraries/aurigma/ImageUploaderFlashPHP/UploadHandler.class.php(186):
UploadHandler->processRequest()\n#3
/home/application/libraries/aurigma/Aurigmabackend.php(10):
UploadHandler->saveFiles('/mnt/uploads/di...')\n#4
/home/application/controllers/create.php(565):
Aurigmabackend->initialize('/uploads/di...')\n#5 [internal function]:
create->htmlflashupload()\n#6 /home/system/core/CodeIgniter.php(359):
call_user_func_array(Array, Array)\n#7 /home/index.php(203):
require_once('/home/...')\n#8 in
/home/application/libraries/aurigma/ImageUploaderFlashPHP/UploadSession.class.php
on line 142.
We further investigated the error in html5 uploader in Firefox. we added the log in the backend and checked the post parameters that are been sent from client. we found that some of the post parameters were missing for a file that failed to upload.
Missing post parameters were RequestCount, PackageComplete and RequestComplete but these parameters are their in the post parameters in the browsers.
Error code 6 is - goog.net.ErrorCode.HTTP_ERROR, The Http response
returned a non-successful http status code (500)
Https status 500 -
is a server error.
Upload request is invalid - Aurigma Uploader
request consists of some required fields such as
packageGuid,requestComplete,packageCount.
Your request is
incomplete and don't have all required fields. Check constructor of UploadSession.php. Check $_POST and $post objects
If you can't find error yourself, you may ask a help from Aurigma support team.

MoonMail installation issue - error during CloudFormation

While trying to install MoonMail, I'm running the following command:
sls resources deploy
and I'm getting the following error:
/usr/lib/node_modules/serverless/node_modules/bluebird/js/release/async.js:61
fn = function () { throw arg; };
^
ServerlessError: ServerlessError: An error occurred while provisioning your cloudformation: The following resource(s) failed to create: [ScheduledEmailsTable, AttachSenderTopic, SentEmailsTable, SendCampaignTopic, PrecompileEmailTopic, AttachRecipientsTopic, CampaignsTable, TemplatesTable, AttachListRecipientsTopic, RecipientsTable, AutomationActionsTable, ClicksReportTable, UnsubscribedRecipientTopic, LinksTable, ExpertsTable, UpdateUserReputationTopic, EmailNotificationsTopic, OpensStream, UpdateCampaignTopic, OpensTable]. . Delete requested by user.
I've already tried giving the IAM user admin access, unfortunately it didn't help.
Go to your AWS dashboard, CloudFormation section, and select the stack where you're deploying the project. You'll see exactly the error that prevented you from creating the stack, serverless errors are not really descriptive when it comes to CloudFormation

chrome extension using google.payments.inapp fails

I'm trying to enable in-app purchase inside my chrome extension. For that I've integrated with Google's buy.js lib.
Now when I attempt to purchase using this endpoint - google.payments.inapp.buy
I get the following error -
An unexpected error has occurred. Please try again later.
When I look at the console of the prompted paymet screen I see that there's a failed attempt to call a service at url -
https://224.32.32.55/29753 Failed to load resource:
net::ERR_ADDRESS_UNREACHABLE
It used to work in the past and stopped. What could be causing this?

Error 310: Staging failed deploying - Grails app in Cloud Foundry

I'm trying to deploy my grails app to Cloud Foundry and I'm getting the eror below.
I'm wondering if my mysql datasource is correctly configured in DataSource.groovy and this could be causing the issue or I'm missing something else.
====> /logs/staging.log <====
Uploading Application:
Checking for available resources: OK
Processing resources: OK
Packing application: OK
Uploading (116K): OK
Push Status: OK
Staging Application: ..Error 310: Staging failed: 'Staging plugin failed staging application:
/var/vcap/packages/stager/stager/vendor/bundle/ruby/1.9.1/gems/vcap_staging-0.1.44/lib/vcap/staging/plugin/java_web/plugin.rb:25:in block in stage_application': Web application staging failed: web.xml not found (RuntimeError)
from /var/vcap/packages/stager/stager/vendor/bundle/ruby/1.9.1/gems/vcap_staging-0.1.44/lib/vcap/staging/plugin/java_web/plugin.rb:19:inchdir'
from /var/vcap/packages/stager/stager/vendor/bundle/ruby/1.9.1/gems/vcap_staging-0.1.44/lib/vcap/staging/plugin/java_web/plugin.rb:19:in stage_application'
from /var/vcap/packages/stager/stager/bin/run_plugin:19:in'
'
I tried to run grails cf-list-files to check tomcat logs but I got the following error:
| Environment set to development.....
Error: 400 Bad Request
| Error org.cloudfoundry.client.lib.CloudFoundryException: 400 Bad Request (Operation not permitted on a stopped app)
| Error at org.cloudfoundry.client.lib.CloudFoundryClient$ErrorHandler.handleError(CloudFoundryClient.java:78)
| Error at org.cloudfoundry.client.lib.CloudFoundryClient.getFile(CloudFoundryClient.java:463)
As tomas posted on 3/27,
grails install-plugin cloud-foundry followed by grails cf-push