Skip to content

postTextMessage TypeError: Cannot read properties of undefined #863

@vinayburam

Description

@vinayburam

Hello Team,
I am using manual deployment without CF Template and used upload file feature.but when added the chatbot to sharepoint getting below error

actions: sendTypingEvent
lex-web-ui.min.js:142 Error: Resolved credential object is not valid
at Oe.validateResolvedCredentials (lex-web-ui.min.js:142:47174)
at Oe.signRequest (lex-web-ui.min.js:142:45741)
lex-web-ui.min.js:142 error in postTextMessage TypeError: Cannot read properties of undefined (reading 'sessionAttributes')
at lex-web-ui.min.js:142:387105

I have generated the cloudfront url using the old template((Master Lex Web UI CloudFormation template (v0.19.6)) and then deployed the new code to same buckets

master.8.yaml
lexbot.1.yaml

cognitouserpoolconfig.3.yaml
cognito.3.yaml
CodeBuild-Deploy.7.yaml
++++++++++++++++++++++++++++++++++++++++++++++
Can I add the below code to my existing template to work the file upload feature
Parameter:
ShouldEnableUpload:
Type: String
Default: false
AllowedValues:

  • true
  • false
    Description: >
    If set to True, the upload document functionality will be available. The icon for uploading documents
    will appear in the UI and an API Gateway endpoint will be deployed for generating pre-signed URLs for the UI
    to utilize for uploading documents. By default, pre-signed URLs have a TTL of 60 seconds.

UploadBucket:
Type: String
Default: ''
Description: >
If enabling upload, the name of the S3 bucket where uploaded documents should be stored
parameters

ShouldEnableUpload
UploadBucket
ShouldEnableUpload: !Ref ShouldEnableUpload
UploadBucket: !Ref UploadBucket

ShouldEnableUpload: !Ref ShouldEnableUpload
UploadBucket: !Ref UploadBucket

Can i add above configuration to add upload feauture in my existing template

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions