appsmith: [Bug]: Unable to use S3 Integration with DigitalOcean Spaces

Is there an existing issue for this?

  • I have searched the existing issues

Description

When I try to add a new Data source, using the S3 Integration with Digital Ocean Spaces, I get the error Your S3 endpoint URL seems to be incorrect for the selected S3 service provider. Please check your endpoint URL and the selected S3 service provider, even though I’m using the endpoint provided by DigitalOcean.

When creating a S3 Datasource with DigitalOcean it shows me the access key, the Secret key, and the Endpoint URL to be filled, I filled everything correctly, but for the Endpoint URL is some problem, when I click on Test I get the error as follows: Your S3 endpoint URL seems to be incorrect for the selected S3 service provider. Please check your endpoint URL and the selected S3 service provider.

The data is correct, but the test keeps giving a fail message. What I expect is a correct connection.

Steps To Reproduce

  1. Open an existing Project in Appsmith.
  2. Go to Data sources and click on the + button.
  3. Select the S3 Datasource option.
  4. Select on the drop-down list, Digital Ocean Spaces.
  5. Add your Access key, the Secret Key, and the Endpoint URL
  6. Click on Test
  7. Error: Your S3 endpoint URL seems to be incorrect for the selected S3 service provider. Please check your endpoint URL and the selected S3 service provider.

image image image

I tried to connect with the same credentials and endpoint via Postman and a Python Script, and it worked fine. Attaching script for reference:

import boto3
import botocore

session = boto3.session.Session()

client = session.client('s3',
                        config=botocore.config.Config(s3={'addressing_style': 'virtual'}), # Configures to use subdomain/virtual calling format.
                        region_name='nyc3',
                        endpoint_url='https://nyc3.digitaloceanspaces.com',
                        aws_access_key_id=('DO00KZ83*************'),
                        aws_secret_access_key=('4uDPOqJJzDtVs****************'))
try:
    response = client.list_buckets()
    print("Success")
except botocore.exceptions.ClientError as error:
    print("Error", error)

Public Sample App

No response

Environment

Production

Issue video log

No response

Version

Cloud Appsmith v1.9.12-SNAPSHOT

Front logo Front conversations

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Comments: 18 (7 by maintainers)

Most upvoted comments

Thanks Felix, this is a good find indeed