question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Setting a custom endpoint_url

See original GitHub issue

How do I pass a custom endpoint url to s3fs.S3FileSystem ?

I’ve tried:

kwargs = {'endpoint_url':"https://s3.wasabisys.com",
          'region_name':'us-east-1'}
self.client = s3fs.S3FileSystem(key=AWS_ACCESS_KEY_ID, 
                                secret=AWS_SECRET_ACCESS_KEY,
                                use_ssl=True,
                                **kwargs)

However I get the error:

  File "s3fs/core.py", line 215, in connect
    **self.kwargs)
TypeError: __init__() got an unexpected keyword argument 'endpoint_url'

I’ve also tried passing kwargs as the parameter config_kwargs and s3_additional_kwargs with similar errors. The problem with these is that endpoint_url gets passed to botocore.Config when it shouldn’t.

I can verify boto3 is working with the following:

client = boto3.client("s3",
        aws_access_key_id=AWS_ACCESS_KEY_ID,
        aws_secret_access_key=AWS_SECRET_ACCESS_KEY,
        endpoint_url="https://s3.wasabisys.com",
        use_ssl=True,
        region_name="us-east-1", 
        api_version=None,verify=None, config=None)

fs-s3fs also works

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
martindurantcommented, Jun 21, 2020

Watch this space! Once https://github.com/pandas-dev/pandas/pull/34266 is in, we will be adding storage_parameters= to the various pandas IO functions, as is already available in the Dask versions.

2reactions
martindurantcommented, Mar 11, 2018

@npezolano , since you’ve just looked through the documentation, you may be the best placed to consider where this information should appear. Would you be willing to provide a PR?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure a Custom Endpoint for an Instance
Perform the following configuration tasks to successfully use a custom endpoint URL for your Oracle Integration instance:.
Read more >
Specifying Custom Endpoints - AWS SDK for JavaScript
Make sure you specify the same Region in your code as the Region in the custom endpoint URI. A mismatch between the Region...
Read more >
Setting a custom endpoint of an SNS client results in ... - GitHub
Setting a custom endpoint of an SNS client results in EndpointError: Endpoint URL must be a string, got object .
Read more >
Configuring Client Endpoints | AWS SDK for Go V2
Configuring custom endpoints, lets you do more, such as working with pre-release versions of a service. A EndpointResolver can be configured to ...
Read more >
Configuring endpoint URL information for HTTP bindings - IBM
Select Default HTTP URL prefix or Custom HTTP URL Prefix. If you select the default HTTP URL prefix, a list provides you with...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found