-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to attach function #30
Comments
Thank you for reporting. I didn't know #31 is not perfect solution, just telling people more friendly that you can't use this in interactive mode. |
Thanks for your help. that error is gone.
You can see the region its referring is |
My bad, there was another npm package named |
Lambda deployed successfully, but still getting same error: |
@faizanalhassan What output will you get if you execute First, you need to deploy by from chromeless import Chromeless
import boto3 # This
boto3.setup_default_session(region_name='us-east-2') # This
def get_title(self, url):
self.get(url)
return self.title
chrome = Chromeless()
chrome.attach(get_title)
print(chrome.get_title("https://example.com")) If you don't mind setting |
Yeah, actually I have multiple AWS profiles, so that might be causing this. I also set |
However, I suggest to accept aws key, secret and region in |
Yes, I agree with your idea and PR is always welcome, thank you! Instead of accepting credentials directly, I think from boto3.session import Session
session = Session(aws_access_key_id='<YOUR ACCESS KEY ID>',
aws_secret_access_key='<YOUR SECRET KEY>',
region_name='<REGION NAME>')
# or
session = Session(profile_name='<YOUR_PROFILE_NAME>') |
Ok doing with session object. Will update you in a day or two. Thanks for accepting my contributions. |
Followed exact steps given in readme to run the code.
But got this error:
I have not used sls earlier, just deployed to lambda directly, so maybe some steps are not written for devs who are unfamiliar with sls.
The text was updated successfully, but these errors were encountered: