Closed Moon-developer closed 5 years ago
Hi @Moondog360, Please set the full URL like this https://www.google.com
I did do that too. Turned out that it was a timeout issue so changing it from 10 seconds to 15 seconds seemed to fix that problem but now I ran into another problem.
I changed the lambda_function.py to just add one line which is
if 'url' in event.keys():
driver.get(event['url'])
page_data = driver.page_source
driver.find_element_by_id('action-button').click() # added this line
print(page_data)
driver.close()
I zipped the code and uploaded everything like I did before but it's complaining about
{
"errorMessage": "Unable to import module 'lambda_function'"
}
So not sure why this is happening now.
Managed to figure out what was wrong. I was not compressing it correctly. I compressed the folder the code was in instead of going into the folder then select everything and compress to .ZIP. This might have been the same problem one of the guys on your website comments section had and didn't realize everything had to be at root of the zip file if that makes sense.
I'm having problems running test events. In my test event I have the following
when I run test it gives me the following message
along with
Any idea what could be happening here? I followed all the steps properly as far as I can. Even tried updating the bin files and changing the permission rights.