While uploading the MEDIA to chatbot through botium getting error "Uncaught TypeError: Only absolute URLs are supported"

Please find the below convo:-

#me
Create a Ticket

#bot
OK, Let’s create an IT support request.

#bot
Please provide all required details
CARDS Please provide all required details
FORMS Title|Description|How urgent is your need?
BUTTONS Next|Cancel

#me
FORM summary | BotTicket12Apr17
FORM description | BotiumSummary
FORM action | Next

#bot
Do you want to add attachment to the ticket?
CARDS Do you want to add attachment to the ticket?
BUTTONS Yes | No

#me
Yes

#bot
Please attach the file from the message box using the attach functionality of Teams
(If attach icon is not visible, please upgrade the app using Team’s app store)

#me
MEDIA botium.png

#bot
Creating your support request. I will update you with the support request ID when the ticket creation is ready.

Please help to resolve this issue.

How does the botium.json look like ?

See here for an example how it should look when using picture upload with Directline3:

I have formulated the botium.json file as suggested, still facing the same issue.
Please find the below botium.json file:-
{

“botium”: {

"Capabilities": {

  "PROJECTNAME": "Sample Project",

  "CONTAINERMODE": "directline3",

  "DIRECTLINE3_SECRET": "DirectLine-Secret Key",

  "DIRECTLINE3_BUTTON_TYPE": "message",

  "DIRECTLINE3_BUTTON_VALUE_FIELD": "text",

  "DIRECTLINE3_HANDLE_ACTIVITY_TYPES": "message,event",

  "DIRECTLINE3_ACTIVITY_TEMPLATE": {

    "channelData": {

      "my-special-channel-data": "..."

    }

  },

"USER_INPUTS": [

  {

    "ref": "MEDIA",

    "src": "MediaInput",

    "args": {

      "downloadMedia": true

    }

  }

]      

}

}

}

Convo File:-
Ticket Creation

#me
Create a Ticket

#bot
OK, Let’s create an IT support request.

#bot
Please provide all required details
CARDS Please provide all required details
FORMS Title|Description|How urgent is your need?
BUTTONS Next|Cancel

#me
FORM summary | BotTicket12Apr17
FORM description | BotiumSummary
FORM action | Next

#bot
Do you want to add attachment to the ticket?
CARDS Do you want to add attachment to the ticket?
BUTTONS Yes | No

#me
Yes

#bot
Please attach the file from the message box using the attach functionality of Teams
(If attach icon is not visible, please upgrade the app using Team’s app store)

#me
MEDIA botium.png

#bot
Creating your support request. I will update you with the support request ID when the ticket creation is ready.

Error:-

Uncaught TypeError: Only absolute URLs are supported
at getNodeRequestOptions (node_modules\botium-connector-directline3\node_modules\node-fetch\lib\index.js:1327:9)
at C:\botium\node_modules\botium-connector-directline3\node_modules\node-fetch\lib\index.js:1440:19
at new Promise ()
at fetch (node_modules\botium-connector-directline3\node_modules\node-fetch\lib\index.js:1437:9)
at C:\botium\node_modules\botium-connector-directline3\dist\botium-connector-directline3-cjs.js:385:31
at new Promise ()
at BotiumConnectorDirectline3.UserSays (node_modules\botium-connector-directline3\dist\botium-connector-directline3-cjs.js:321:12)
at C:\botium\node_modules\botium-bindings\node_modules\botium-core\src\containers\PluginConnectorContainer.js:91:37
at C:\botium\node_modules\promise-retry\index.js:29:24

I think the USER_INPUTS capability from the botium.json is the important one - is this missing in yours ? Also, please attach a verbose log file

Hi @Florian
I have added the user_input capability in botium.json file.
Please find below added capability in botium.json file:-
“USER_INPUTS”: [

  {

    "ref": "MEDIA",

    "src": "MediaInput",

    "args": {

      "downloadMedia": true

    }

  }

]

Please find below log file:-
PS C:\botium> npm run mocha

yourbot@0.0.0 mocha
mocha spec

botium-bindings-main Botium Bindings args: {
botium-bindings-main convodirs: [ ‘spec\convo’ ],
botium-bindings-main expandConvos: true,
botium-bindings-main expandUtterancesToConvos: false,
botium-bindings-main expandScriptingMemoryToConvos: false
botium-bindings-main } +0ms
botium-core-BotDriver Loaded Botium configuration files C:\botium\botium.json +0ms
botium-core-asserterUtils MEDIA userinput already exists, overwriting. +0ms
botium-core-ScriptingProvider ReadConvosFromDirectory(spec\convo) found filenames: TicketCreationWithAttachment.convo.txt +0ms
botium-core-ScriptingProvider ReadConvosFromDirectory(spec\convo) found convos:
botium-core-ScriptingProvider 1 Ticket Creation ({
botium-core-ScriptingProvider convoDir: ‘spec\convo’,
botium-core-ScriptingProvider filename: ‘TicketCreationWithAttachment.convo.txt’
botium-core-ScriptingProvider }): Line 3: #me - Create a Ticket | Line 6: #bot - OK, Let’s create an IT support request. | Line 9: #bot - Please provide all required details CARDS(Please provide all required details) ASS: FORMS(Title,Description,How urgent is your need?) ASS: BUTTONS(Submit,Add Attachment,Cancel) | Line 15:
#me - FORM(summary,BotTicket12Apr17) UI: FORM(description,BotiumSummary) UI: FORM(action,Add Attachment) | Line 20: #bot - To add an attachment add your file in this chat box as you would normally do in Teams. Click the Paperclip, drag and drop
the file, or copy/paste a screenshot. Multiple files are allowed, 10MB per limit.
botium-core-ScriptingProvider File types allowed are jpg, png, office files, Outlook email, and pdf files.
botium-core-ScriptingProvider Hit the send button when you are finished. | Line
25: #me - MEDIA(MayTelephoneBill.jpg) | Line 28: #bot - Creating your support request. I will update you with the support request ID when the ticket creation is ready. +5ms
botium-core-ScriptingProvider ReadConvosFromDirectory(spec\convo) found utterances:
botium-core-ScriptingProvider none +3ms
botium-core-ScriptingProvider ReadConvosFromDirectory(spec\convo) found partial
convos:
botium-core-ScriptingProvider none +0ms
botium-core-ScriptingProvider ReadConvosFromDirectory(spec\convo) scripting memories:
botium-core-ScriptingProvider none +1ms
botium-core-ScriptingProvider ExpandConvos - Using utterances expansion mode: all +0ms
botium-bindings-main ready reading convos and utterances, number of test cases:
(1). +307ms
botium-bindings-main adding test case 1 Ticket Creation +1ms

Andritz Project
botium-core-BotDriver Build - Botium Core Version: 1.11.15 +315ms
botium-core-BotDriver Build - Capabilites: {
botium-core-BotDriver PROJECTNAME: ‘Andritz Project’,
botium-core-BotDriver TESTSESSIONNAME: ‘Botium Test Session’,
botium-core-BotDriver TESTCASENAME: ‘Botium Test Case’,
botium-core-BotDriver TEMPDIR: ‘botiumwork’,
botium-core-BotDriver CLEANUPTEMPDIR: true,
botium-core-BotDriver WAITFORBOTTIMEOUT: 10000,
botium-core-BotDriver SIMULATE_WRITING_SPEED: false,
botium-core-BotDriver SIMPLEREST_PING_RETRIES: 6,
botium-core-BotDriver SIMPLEREST_PING_TIMEOUT: 10000,
botium-core-BotDriver SIMPLEREST_PING_VERB: ‘GET’,
botium-core-BotDriver SIMPLEREST_PING_UPDATE_CONTEXT: true,
botium-core-BotDriver SIMPLEREST_PING_PROCESS_RESPONSE: false,
botium-core-BotDriver SIMPLEREST_INIT_PROCESS_RESPONSE: false,
botium-core-BotDriver SIMPLEREST_STOP_RETRIES: 6,
botium-core-BotDriver SIMPLEREST_STOP_TIMEOUT: 10000,
botium-core-BotDriver SIMPLEREST_STOP_VERB: ‘GET’,
botium-core-BotDriver SIMPLEREST_START_RETRIES: 6,
botium-core-BotDriver SIMPLEREST_START_TIMEOUT: 10000,
botium-core-BotDriver SIMPLEREST_START_UPDATE_CONTEXT: true,
botium-core-BotDriver SIMPLEREST_START_PROCESS_RESPONSE: true,
botium-core-BotDriver SIMPLEREST_START_VERB: ‘GET’,
botium-core-BotDriver SIMPLEREST_POLL_VERB: ‘GET’,
botium-core-BotDriver SIMPLEREST_POLL_INTERVAL: 1000,
botium-core-BotDriver SIMPLEREST_POLL_UPDATE_CONTEXT: true,
botium-core-BotDriver SIMPLEREST_METHOD: ‘GET’,
botium-core-BotDriver SIMPLEREST_IGNORE_EMPTY: true,
botium-core-BotDriver SIMPLEREST_TIMEOUT: 10000,
botium-core-BotDriver SIMPLEREST_EXTRA_OPTIONS: {},
botium-core-BotDriver SIMPLEREST_STRICT_SSL: true,
botium-core-BotDriver SIMPLEREST_INBOUND_UPDATE_CONTEXT: true,
botium-core-BotDriver SIMPLEREST_CONTEXT_MERGE_OR_REPLACE: ‘MERGE’,
botium-core-BotDriver SCRIPTING_TXT_EOL: ‘\n’,
botium-core-BotDriver SCRIPTING_XLSX_EOL_WRITE: ‘\r\n’,
botium-core-BotDriver SCRIPTING_XLSX_HASHEADERS: true,
botium-core-BotDriver SCRIPTING_CSV_SKIP_HEADER: true,
botium-core-BotDriver SCRIPTING_CSV_QUOTE: ‘"’,
botium-core-BotDriver SCRIPTING_CSV_ESCAPE: ‘"’,
botium-core-BotDriver SCRIPTING_NORMALIZE_TEXT: true,
botium-core-BotDriver SCRIPTING_ENABLE_MEMORY: false,
botium-core-BotDriver SCRIPTING_ENABLE_MULTIPLE_ASSERT_ERRORS: false,
botium-core-BotDriver SCRIPTING_MATCHING_MODE: ‘wildcardIgnoreCase’,
botium-core-BotDriver SCRIPTING_UTTEXPANSION_MODE: ‘all’,
botium-core-BotDriver SCRIPTING_UTTEXPANSION_RANDOM_COUNT: 1,
botium-core-BotDriver SCRIPTING_UTTEXPANSION_NAMING_MODE: ‘justLineTag’,
botium-core-BotDriver SCRIPTING_UTTEXPANSION_NAMING_UTTERANCE_MAX: ‘16’,
botium-core-BotDriver SCRIPTING_MEMORYEXPANSION_KEEP_ORIG: false,
botium-core-BotDriver SCRIPTING_FORCE_BOT_CONSUMED: false,
botium-core-BotDriver ASSERTERS: ,
botium-core-BotDriver LOGIC_HOOKS: ,
botium-core-BotDriver USER_INPUTS: [ { ref: ‘MEDIA’, src: ‘MediaInput’, args:
[Object] } ],
botium-core-BotDriver SECURITY_ALLOW_UNSAFE: true,
botium-core-BotDriver CONTAINERMODE: ‘directline3’,
botium-core-BotDriver DIRECTLINE3_SECRET: ‘peC_48cbWmA.LRTb333fmZ4KhI9NejOIVhUkD-3w6Pqe70LksBQT2Bw’,
botium-core-BotDriver DIRECTLINE3_BUTTON_TYPE: ‘message’,
botium-core-BotDriver DIRECTLINE3_BUTTON_VALUE_FIELD: ‘text’,
botium-core-BotDriver DIRECTLINE3_HANDLE_ACTIVITY_TYPES: ‘message,event’,
botium-core-BotDriver DIRECTLINE3_ACTIVITY_TEMPLATE: { channelData: { ‘my-special-channel-data’: ‘…’ } }
botium-core-BotDriver } +9ms
botium-core-BotDriver Build - Sources : { LOCALPATH: ‘.’, GITPATH: ‘git’, GITBRANCH: ‘master’, GITDIR: ‘.’ } +9ms
botium-core-BotDriver Build - Envs : { IS_BOTIUM_CONTAINER: true } +1ms
botium-connector-PluginConnectorContainer-helper Botium plugin botium-connector-directline3 loaded. Plugin version is 0.0.19 +0ms
botium-connector-directline3 Validate called +0ms
botium-connector-directline3 Build called +3ms
botium-connector-directline3 Start called +2ms
botium-connector-directline3 Directline Connection Status: 1 / Connecting +8ms
botium-bindings-main running testcase1 Ticket Creation +241ms
botium-core-Convo Ticket Creation/Line 3: user says (cleaned by binary and base64 data and sourceData) {
botium-core-Convo “sender”: “me”,
botium-core-Convo “channel”: null,
botium-core-Convo “not”: false,
botium-core-Convo “optional”: false,
botium-core-Convo “messageText”: “Create a Ticket”,
botium-core-Convo “media”: null,
botium-core-Convo “buttons”: null,
botium-core-Convo “cards”: null,
botium-core-Convo “forms”: null,
botium-core-Convo “attachments”: null,
botium-core-Convo “asserters”: ,
botium-core-Convo “userInputs”: ,
botium-core-Convo “logicHooks”:
botium-core-Convo } +0ms
botium-connector-directline3 UserSays called +8ms
botium-connector-directline3 Posting activity {
“channelData”: {
“my-special-channel-data”: “…”
},
“type”: “message”,
“text”: “Create a Ticket”,
“from”: {
“id”: “me”
}
} +1ms
postActivity {
channelData: { ‘my-special-channel-data’: ‘…’ },
type: ‘message’,
text: ‘Create a Ticket’,
from: { id: ‘me’ }
}
botium-connector-directline3 Directline Connection Status: 2 / Online +474ms
botium-connector-directline3 received message {
“type”: “message”,
“id”: “7x6VfvLVMZA5hdMYvjL579-in|0000001”,
“timestamp”: “2022-05-25T11:47:16.8072957Z”,
“channelId”: “directline”,
“from”: {
“id”: “SmartAssistantUAT”,
“name”: “Smart Assistant UAT Non Prod”
},
“conversation”: {
“id”: “7x6VfvLVMZA5hdMYvjL579-in”
},
“text”: “OK, Let’s create an IT support request.”,
“replyToId”: “7x6VfvLVMZA5hdMYvjL579-in|0000000”
} +2s
botium-connector-directline3 received message {
“type”: “message”,
“id”: “7x6VfvLVMZA5hdMYvjL579-in|0000002”,
“timestamp”: “2022-05-25T11:47:16.9923578Z”,
“channelId”: “directline”,
“from”: {
“id”: “SmartAssistantUAT”,
“name”: “Smart Assistant UAT Non Prod”
},
“conversation”: {
“id”: “7x6VfvLVMZA5hdMYvjL579-in”
},
“inputHint”: “expectingInput”,
“attachments”: [
{
“contentType”: “application/vnd.microsoft.card.adaptive”,
“content”: {
“$schema”: “http://adaptivecards.io/schemas/adaptive-card.json”,
“version”: “1.3”,
“type”: “AdaptiveCard”,
“body”: [
{
“type”: “TextBlock”,
“text”: “Please provide all required details”,
“wrap”: true
},
{
“type”: “Input.Text”,
“id”: “summary”,
“label”: “Title”,
“isMultiline”: false,
“placeholder”: “Please enter title”,
“isRequired”: true,
“separator”: true,
“errorMessage”: “Please enter title”,
“value”: “”
},
{
“type”: “Input.Text”,
“id”: “description”,
“label”: “Description”,
“isMultiline”: true,
“placeholder”: “Please enter description”,
“isRequired”: true,
“errorMessage”: “Please enter Description”,
“value”: “”
},
{
“type”: “Input.ChoiceSet”,
“id”: “priority”,
“style”: “expanded”,
“label”: “How urgent is your need?”,
“isRequired”: true,
“errorMessage”: “Please Select the Urgency.”,
“value”: “Medium”,
“choices”: [
{
“title”: “I can continue working (Normal Priority)”,
“value”: “Medium”
},
{
“title”: “Prevents me from working (High Priority)”,
“value”: “High”,
“color”: “attention”
}
]
}
],
“actions”: [
{
“type”: “Action.Submit”,
“title”: “Submit”,
“data”: {
“action”: “Submit”
},
“style”: “positive”
},
{
“type”: “Action.Submit”,
“title”: “Add Attachment”,
“data”: {
“action”: “Add Attachment”
}
},
{
“type”: “Action.Submit”,
“title”: “Cancel”,
“data”: {
“action”: “Cancel”
},
“associatedInputs”: “none”
}
]
}
}
],
“replyToId”: “7x6VfvLVMZA5hdMYvjL579-in|0000000”
} +2ms
botium-connector-directline3 Posted activity, assigned ID: 7x6VfvLVMZA5hdMYvjL579-in|0000000 +27ms
botium-core-Convo Ticket Creation wait for bot +3s
botium-core-Convo Ticket Creation: bot says (cleaned by binary and base64 data and sourceData) {
botium-core-Convo “sender”: “bot”,
botium-core-Convo “media”: ,
botium-core-Convo “buttons”: ,
botium-core-Convo “cards”: ,
botium-core-Convo “forms”: ,
botium-core-Convo “messageText”: “OK, Let’s create an IT support request.”,
botium-core-Convo “channel”: “default”
botium-core-Convo } +183ms
botium-core-ScriptingMemory fill start: {} +0ms
botium-core-ScriptingProvider assertBotResponse Ticket Creation/Line 6 (Line 3:
#me - Create a Ticket) BOT: OK, Let’s create an IT support request. = OK, Let’s create an IT support request. … +3s
botium-core-Convo Ticket Creation wait for bot +5ms
botium-core-Convo Ticket Creation: bot says (cleaned by binary and base64 data and sourceData) {
botium-core-Convo “sender”: “bot”,
botium-core-Convo “media”: ,
botium-core-Convo “buttons”: ,
botium-core-Convo “cards”: [
botium-core-Convo {
botium-core-Convo “text”: [
botium-core-Convo “Please provide all required details”
botium-core-Convo ],
botium-core-Convo “image”: false,
botium-core-Convo “buttons”: [
botium-core-Convo {
botium-core-Convo “text”: “Submit”,
botium-core-Convo “payload”: {
botium-core-Convo “action”: “Submit”
botium-core-Convo }
botium-core-Convo },
botium-core-Convo {
botium-core-Convo “text”: “Add Attachment”,
botium-core-Convo “payload”: {
botium-core-Convo “action”: “Add Attachment”
botium-core-Convo }
botium-core-Convo },
botium-core-Convo {
botium-core-Convo “text”: “Cancel”,
botium-core-Convo “payload”: {
botium-core-Convo “action”: “Cancel”
botium-core-Convo }
botium-core-Convo }
botium-core-Convo ],
botium-core-Convo “media”: false,
botium-core-Convo “forms”: [
botium-core-Convo {
botium-core-Convo “name”: “summary”,
botium-core-Convo “label”: “Title”,
botium-core-Convo “type”: “Text”
botium-core-Convo },
botium-core-Convo {
botium-core-Convo “name”: “description”,
botium-core-Convo “label”: “Description”,
botium-core-Convo “type”: “Text”
botium-core-Convo },
botium-core-Convo {
botium-core-Convo “name”: “priority”,
botium-core-Convo “label”: “How urgent is your need?”,
botium-core-Convo “type”: “ChoiceSet”,
botium-core-Convo “options”: [
botium-core-Convo {
botium-core-Convo “title”: “I can continue working (Normal Priority)”,
botium-core-Convo “value”: “Medium”
botium-core-Convo },
botium-core-Convo {
botium-core-Convo “title”: “Prevents me from working (High Priority)”,
botium-core-Convo “value”: “High”,
botium-core-Convo “color”: “attention”
botium-core-Convo }
botium-core-Convo ]
botium-core-Convo }
botium-core-Convo ],
botium-core-Convo “cards”: null,
botium-core-Convo “sourceData”: {
botium-core-Convo “$schema”: “http://adaptivecards.io/schemas/adaptive-card.json”,
botium-core-Convo “version”: “1.3”,
botium-core-Convo “type”: “AdaptiveCard”,
botium-core-Convo “body”: [
botium-core-Convo {
botium-core-Convo “type”: “TextBlock”,
botium-core-Convo “text”: “Please provide all required details”,
botium-core-Convo “wrap”: true
botium-core-Convo },
botium-core-Convo {
botium-core-Convo “type”: “Input.Text”,
botium-core-Convo “id”: “summary”,
botium-core-Convo “label”: “Title”,
botium-core-Convo “isMultiline”: false,
botium-core-Convo “placeholder”: “Please enter title”,
botium-core-Convo “isRequired”: true,
botium-core-Convo “separator”: true,
botium-core-Convo “errorMessage”: “Please enter title”,
botium-core-Convo “value”: “”
botium-core-Convo },
botium-core-Convo {
botium-core-Convo “type”: “Input.Text”,
botium-core-Convo “id”: “description”,
botium-core-Convo “label”: “Description”,
botium-core-Convo “isMultiline”: true,
botium-core-Convo “placeholder”: “Please enter description”,
botium-core-Convo “isRequired”: true,
botium-core-Convo “errorMessage”: “Please enter Description”,
botium-core-Convo “value”: “”
botium-core-Convo },
botium-core-Convo {
botium-core-Convo “type”: “Input.ChoiceSet”,
botium-core-Convo “id”: “priority”,
botium-core-Convo “style”: “expanded”,
botium-core-Convo “label”: “How urgent is your need?”,
botium-core-Convo “isRequired”: true,
botium-core-Convo “errorMessage”: “Please Select the Urgency.”,
botium-core-Convo “value”: “Medium”,
botium-core-Convo “choices”: [
botium-core-Convo {
botium-core-Convo “title”: “I can continue working (Normal Priority)”,
botium-core-Convo “value”: “Medium”
botium-core-Convo },
botium-core-Convo {
botium-core-Convo “title”: “Prevents me from working (High Priority)”,
botium-core-Convo “value”: “High”,
botium-core-Convo “color”: “attention”
botium-core-Convo }
botium-core-Convo ]
botium-core-Convo }
botium-core-Convo ],
botium-core-Convo “actions”: [
botium-core-Convo {
botium-core-Convo “type”: “Action.Submit”,
botium-core-Convo “title”: “Submit”,
botium-core-Convo “data”: {
botium-core-Convo “action”: “Submit”
botium-core-Convo },
botium-core-Convo “style”: “positive”
botium-core-Convo },
botium-core-Convo {
botium-core-Convo “type”: “Action.Submit”,
botium-core-Convo “title”: “Add Attachment”,
botium-core-Convo “data”: {
botium-core-Convo “action”: “Add Attachment”
botium-core-Convo }
botium-core-Convo },
botium-core-Convo {
botium-core-Convo “type”: “Action.Submit”,
botium-core-Convo “title”: “Cancel”,
botium-core-Convo “data”: {
botium-core-Convo “action”: “Cancel”
botium-core-Convo },
botium-core-Convo “associatedInputs”: “none”
botium-core-Convo }
botium-core-Convo ]
botium-core-Convo }
botium-core-Convo }
botium-core-Convo ],
botium-core-Convo “forms”: ,
botium-core-Convo “messageText”: “Please provide all required details”,
botium-core-Convo “channel”: “default”
botium-core-Convo } +2ms
botium-core-ScriptingMemory fill start: {} +36ms
botium-core-ScriptingProvider assertBotResponse Ticket Creation/Line 9 (Line 3:
#me - Create a Ticket) BOT: Please provide all required details = Please provide all required details … +46ms
botium-core-Convo Ticket Creation/Line 15: user says (cleaned by binary and base64 data and sourceData) {
botium-core-Convo “sender”: “me”,
botium-core-Convo “channel”: null,
botium-core-Convo “not”: false,
botium-core-Convo “optional”: false,
botium-core-Convo “messageText”: null,
botium-core-Convo “media”: null,
botium-core-Convo “buttons”: null,
botium-core-Convo “cards”: null,
botium-core-Convo “forms”: [
botium-core-Convo {
botium-core-Convo “name”: “summary”,
botium-core-Convo “value”: “BotTicket12Apr17”,
botium-core-Convo “options”: null
botium-core-Convo },
botium-core-Convo {
botium-core-Convo “name”: “description”,
botium-core-Convo “value”: “BotiumSummary”,
botium-core-Convo “options”: null
botium-core-Convo },
botium-core-Convo {
botium-core-Convo “name”: “action”,
botium-core-Convo “value”: “Add Attachment”,
botium-core-Convo “options”: null
botium-core-Convo }
botium-core-Convo ],
botium-core-Convo “attachments”: null,
botium-core-Convo “asserters”: ,
botium-core-Convo “userInputs”: [
botium-core-Convo {
botium-core-Convo “name”: “FORM”,
botium-core-Convo “args”: [
botium-core-Convo “summary”,
botium-core-Convo “BotTicket12Apr17”
botium-core-Convo ]
botium-core-Convo },
botium-core-Convo {
botium-core-Convo “name”: “FORM”,
botium-core-Convo “args”: [
botium-core-Convo “description”,
botium-core-Convo “BotiumSummary”
botium-core-Convo ]
botium-core-Convo },
botium-core-Convo {
botium-core-Convo “name”: “FORM”,
botium-core-Convo “args”: [
botium-core-Convo “action”,
botium-core-Convo “Add Attachment”
botium-core-Convo ]
botium-core-Convo }
botium-core-Convo ],
botium-core-Convo “logicHooks”:
botium-core-Convo } +55ms
botium-connector-directline3 UserSays called +252ms
botium-connector-directline3 Posting activity {
“channelData”: {
“my-special-channel-data”: “…”
},
“type”: “message”,
“text”: null,
“from”: {
“id”: “me”
},
“value”: {
“summary”: “BotTicket12Apr17”,
“description”: “BotiumSummary”,
“action”: “Add Attachment”
}
} +1ms
postActivity {
channelData: { ‘my-special-channel-data’: ‘…’ },
type: ‘message’,
text: null,
from: { id: ‘me’ },
value: {
summary: ‘BotTicket12Apr17’,
description: ‘BotiumSummary’,
action: ‘Add Attachment’
}
}
botium-connector-directline3 Posted activity, assigned ID: 7x6VfvLVMZA5hdMYvjL579-in|0000003 +1s
botium-core-Convo Ticket Creation wait for bot +1s
botium-connector-directline3 received message {
“type”: “message”,
“id”: “7x6VfvLVMZA5hdMYvjL579-in|0000004”,
“timestamp”: “2022-05-25T11:47:18.3850542Z”,
“channelId”: “directline”,
“from”: {
“id”: “SmartAssistantUAT”,
“name”: “Smart Assistant UAT Non Prod”
},
“conversation”: {
“id”: “7x6VfvLVMZA5hdMYvjL579-in”
},
“text”: “To add an attachment add your file in this chat box as you would normally do in Teams. Click the Paperclip, drag and drop the file, or copy/paste a screenshot. Multiple files are allowed, 10MB per limit. \n\n\r\nFile types allowed are jpg, png, office files, Outlook email, and pdf files. \n\n Hit the send button when you are finished.”,
“inputHint”: “expectingInput”,
“replyToId”: “7x6VfvLVMZA5hdMYvjL579-in|0000003”
} +718ms
botium-core-Convo Ticket Creation: bot says (cleaned by binary and base64 data and sourceData) {
botium-core-Convo “sender”: “bot”,
botium-core-Convo “media”: ,
botium-core-Convo “buttons”: ,
botium-core-Convo “cards”: ,
botium-core-Convo “forms”: ,
botium-core-Convo “messageText”: “To add an attachment add your file in this chat box as you would normally do in Teams. Click the Paperclip, drag and drop the file, or copy/paste a screenshot. Multiple files are allowed, 10MB per limit. \n\n\r\nFile types allowed are jpg, png, office files, Outlook email, and pdf files.
\n\n Hit the send button when you are finished.”,
botium-core-Convo “channel”: “default”
botium-core-Convo } +921ms
botium-core-ScriptingMemory fill start: {} +2s
botium-core-ScriptingProvider assertBotResponse Ticket Creation/Line 20 (Line 15: #me - FORM(summary,BotTicket12Apr17) UI: FORM(description,BotiumSummary) UI: FORM(action,Add Attachment)) BOT: To add an attachment add your file in this chat box as you would normally do in Teams. Click the Paperclip, drag and drop the file,
or copy/paste a screenshot. Multiple files are allowed, 10MB per limit. File types allowed are jpg, png, office files, Outlook email, and pdf files. Hit the send button when you are finished. = To add an attachment add your file in this chat box
as you would normally do in Teams. Click the Paperclip, drag and drop the file, or copy/paste a screenshot. Multiple files are allowed, 10MB per limit. File types allowed are jpg, png, office files, Outlook email, and pdf files. Hit the send button when you are finished. … +2s
botium-core-Convo Ticket Creation/Line 25: user says (cleaned by binary and base64 data and sourceData) {
botium-core-Convo “sender”: “me”,
botium-core-Convo “channel”: null,
botium-core-Convo “not”: false,
botium-core-Convo “optional”: false,
botium-core-Convo “messageText”: null,
botium-core-Convo “media”: [
botium-core-Convo {
botium-core-Convo “mediaUri”: “MayTelephoneBill.jpg”,
botium-core-Convo “mimeType”: “image/jpeg”,
botium-core-Convo “downloadUri”: “file:///C:/botium/spec/convo/MayTelephoneBill.jpg”,
botium-core-Convo “buffer”: “(binary data)”
botium-core-Convo }
botium-core-Convo ],
botium-core-Convo “buttons”: null,
botium-core-Convo “cards”: null,
botium-core-Convo “forms”: null,
botium-core-Convo “attachments”: null,
botium-core-Convo “asserters”: ,
botium-core-Convo “userInputs”: [
botium-core-Convo {
botium-core-Convo “name”: “MEDIA”,
botium-core-Convo “args”: [
botium-core-Convo “MayTelephoneBill.jpg”
botium-core-Convo ]
botium-core-Convo }
botium-core-Convo ],
botium-core-Convo “logicHooks”:
botium-core-Convo } +21ms
botium-connector-directline3 UserSays called +230ms
botium-connector-directline3 Posting activity with attachments {
“channelData”: {
“my-special-channel-data”: “…”
},
“type”: “message”,
“text”: null,
“from”: {
“id”: “me”
}
} +0ms
1) Ticket Creation
botium-connector-directline3 Stop called +8ms
botium-connector-directline3 unsubscribing from directline activity subscription +1ms
botium-connector-directline3 unsubscribing from directline connectionstatus subscription +1ms
botium-connector-directline3 ending directline connection +0ms
botium-connector-directline3 Clean called +1ms
botium-connector-BaseContainer Cleanup rimrafing temp dir C:\botium\botiumwork\Andritz Project 20220525 171714 jExrV +0ms

0 passing (5s)
1 failing

  1. Andritz Project
    Ticket Creation:
    Uncaught TypeError: Only absolute URLs are supported
    at getNodeRequestOptions (node_modules\botium-connector-directline3\node_modules\node-fetch\lib\index.js:1327:9)
    at C:\botium\node_modules\botium-connector-directline3\node_modules\node-fetch\lib\index.js:1440:19
    at new Promise ()
    at fetch (node_modules\botium-connector-directline3\node_modules\node-fetch\lib\index.js:1437:9)
    at C:\botium\node_modules\botium-connector-directline3\dist\botium-connector-directline3-cjs.js:385:31
    at new Promise ()
    at BotiumConnectorDirectline3.UserSays (node_modules\botium-connector-directline3\dist\botium-connector-directline3-cjs.js:321:12)
    at C:\botium\node_modules\botium-bindings\node_modules\botium-core\src\containers\PluginConnectorContainer.js:91:37
    at C:\botium\node_modules\promise-retry\index.js:29:24

PS C:\botium>

I have placed the attachment in the convo folder, please suggest how to add attachment.

Please find the below convo file:-
Ticket Creation

#me
Create a Ticket

#bot
OK, Let’s create an IT support request.

#bot
Please provide all required details
CARDS Please provide all required details
FORMS Title|Description|How urgent is your need?
BUTTONS Submit|Add Attachment|Cancel

#me
FORM summary | BotTicket12Apr17
FORM description | BotiumSummary
FORM action | Add Attachment

#bot
To add an attachment add your file in this chat box as you would normally do in Teams. Click the Paperclip, drag and drop the file, or copy/paste a screenshot. Multiple files are allowed, 10MB per limit.
File types allowed are jpg, png, office files, Outlook email, and pdf files.
Hit the send button when you are finished.

#me
MEDIA MayTelephoneBill.jpg

#bot
Creating your support request. I will update you with the support request ID when the ticket creation is ready.

hm seems that node-fetch changed the behaviour recently. will have to analyze this further.

1 Like

I have given the path like “MEDIA C:\botium\spec\convo\MayTelephoneBill.jpg” is this correct ?
Getting error :- Uncaught TypeError: Only HTTP(S) protocols are supported
If this is not the correct absolute path the how should I provide ?

hm seems that node-fetch changed the behavior recently. will have to analyze this further. ->when can I get the correct behavior ?

how to validate the attachments through botium. Any update on previous conversation ?

@Florian Can we attach any file through botium? By mentioning in the convo file ?

this is still in our backlog to analyze

Actually, from what I see in the logs and in the code, I have no explanation why this is happening.
What version of the Directline connector are you using ?

“devDependencies”: {

    "botium-bindings": "^2.0.27",

    "botium-cli": "0.0.65",

    "botium-connector-echo": "0.0.4",

    "botium-connector-watson": "0.0.9",

    "botium-core": "^1.8.1",

    "mocha": "^6.2.2",

    "mochawesome": "^3.1.2"

  }

I have the above version. If anything else is required please let me know.

Please upgrade the Botium libraries to the latest versions

1 Like

Thank you so much after upgrading version its working.

1 Like