Skip to content
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

Error when deploying in Canada region #13

Open
awsjputro opened this issue Apr 27, 2023 · 0 comments
Open

Error when deploying in Canada region #13

awsjputro opened this issue Apr 27, 2023 · 0 comments

Comments

@awsjputro
Copy link

  • amazon-lex-bot-deploy version: 0.1.9
  • Python version: 3.10.11
  • Operating System: Amazon Linux 2

Description

I deployed Lex bot successfully in us-east-1 with the exact same method but failed in the region ca-central-1 that I need. That region should have been supported already according to this announcement: https://aws.amazon.com/about-aws/whats-new/2021/05/amazon-lex-available-aws-canada-central-region/ .
Here is the command and error messages:

./bin/lex-bot-deploy -s ./amazon_lex_bot_deploy/examples/BookTrip_Export.json

ERROR:amazon_lex_bot_deploy.amazon_lex_bot_deploy:Could not connect to the endpoint URL: "https://models.lex.ca-central-1.amazonaws.com/imports/"
ERROR:amazon_lex_bot_deploy.amazon_lex_bot_deploy:Maybe Amazon Lex is not supported in region defined. Check https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/
ERROR:main:Could not connect to the endpoint URL: "https://models.lex.ca-central-1.amazonaws.com/imports/"
Exception ignored in: <function ZipFile.del at 0x7fb0c51b9cf0>
Traceback (most recent call last):
File "/usr/local/lib/python3.10/zipfile.py", line 1821, in del
self.close()
File "/usr/local/lib/python3.10/zipfile.py", line 1838, in close
self.fp.seek(self.start_dir)
ValueError: I/O operation on closed file.

What I Did

./bin/lex-bot-deploy -s ./amazon_lex_bot_deploy/examples/BookTrip_Export.json  

ERROR:amazon_lex_bot_deploy.amazon_lex_bot_deploy:Could not connect to the endpoint URL: "https://models.lex.ca-central-1.amazonaws.com/imports/"
ERROR:amazon_lex_bot_deploy.amazon_lex_bot_deploy:Maybe Amazon Lex is not supported in region defined. Check https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/
ERROR:__main__:Could not connect to the endpoint URL: "https://models.lex.ca-central-1.amazonaws.com/imports/"
Exception ignored in: <function ZipFile.__del__ at 0x7fb0c51b9cf0>
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/zipfile.py", line 1821, in __del__
    self.close()
  File "/usr/local/lib/python3.10/zipfile.py", line 1838, in close
    self.fp.seek(self.start_dir)
ValueError: I/O operation on closed file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant