mycolllection(where:{wasAmycollectionGivenBy_SINGLE:{id:{{{entityID}}}}}) {
I tried: {{entityID}}
I tried: "{{{entityID}}}"
I tried: {entityID}
I tried: {entityID}
I am getting error
Here is the error: [myCollectionAPI] Failed to get the mycollection info F27379A9-FEC8-4BF9-AD37-C2701296B143 : {"status":500,"message":"Parse error on line 2:\n...NGLE:{id:{{{entityID}}}}}) {\r totalCou\n-----------------------^\nExpecting 'CLOSE_UNESCAPED', 'OPEN_SEXPR', 'ID', 'STRING', 'NUMBER', 'BOOLEAN', 'UNDEFINED', 'NULL', 'DATA', got 'CLOSE_RAW_BLOCK'","errors":["Error: Parse error on line 2:\n...NGLE:{id:{{{entityID}}}}}) {\r totalCou\n-----------------------^\nExpecting 'CLOSE_UNESCAPED', 'OPEN_SEXPR', 'ID', 'STRING', 'NUMBER', 'BOOLEAN', 'UNDEFINED', 'NULL', 'DATA', got 'CLOSE_RAW_BLOCK'\n
Need help.
Related
I have created some messages in chatbase using session_id to divide sessions. However, these are not shown as separate flows. They appear as concatenated flows.
Example messages:
[ { api_key: 'xxxx',
type: 'user',
user_id: 'Lee',
time_stamp: 1559340845342,
platform: 'Chat_Test2',
session_id: '200',
message: '_',
intent: 'choice',
not_handled: 'false',
version: '1.1' },
{ api_key: 'xxxx',
type: 'agent',
user_id: 'Lee',
time_stamp: 1559340845341,
platform: 'Chat_Test2',
session_id: '200',
message: 'what_would_you_like',
version: '1.1' } ]
[ { api_key: 'xxxx',
type: 'user',
user_id: 'Lee',
time_stamp: 1559340848284,
platform: 'Chat_Test2',
session_id: '201',
message: 'hello',
intent: 'Welcome',
not_handled: 'false',
version: '1.1' },
{ api_key: 'xxxx',
type: 'agent',
user_id: 'Lee',
time_stamp: 1559340848283,
platform: 'Chat_Test2',
session_id: '201',
message: 'hello_how_can_I_help',
version: '1.1' } ]
Thank you for your question and providing the example JSON payload. I see that are numbering your session id's sequentially. You will need to label each utterance with a given session with the same session id. The utterances within each session will then be sorted by timestamp.
If you continue to experience issues, please contact chatbase-support#google.com with your bot's api key and I will be happy to look into your issue directly.
I am using nuxt.js encountered this error TypeError [ERR_INVALID_ARG_TYPE]: The 'request' argument must be string. Received type undefined while running the project what does this error mean?
I tried npm install nothing works.
I think it's node js problem.
Following is my config file
const pkg = require('./package')
module.exports = {
mode: 'universal',
/*
** Headers of the page
*/
head: {
title: pkg.name,
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: pkg.description }
],
link: [
{ rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
{ rel: 'stylesheet', type: 'text/css', href: 'https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css'},
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Open+Sans|Source+Sans+Pro'}
]
}
Looks like the package-lock.json was the issue when I got that error. I've removed it and reinstalled node modules. It works fine ever after. You might want to check if that would work in your situation.
For some reason the Sequelize driver is adding: RETURNING * to the end of select statements. Does anyone have any idea why?
Object:
Lol.create({
id: record.dynamodb.NewImage.id.S,
userId: record.dynamodb.NewImage.userId.S,
summonerId: record.dynamodb.NewImage.summonerId.N,
name: record.dynamodb.NewImage.name.S,
profileIconId: record.dynamodb.NewImage.profileIconId.N,
summonerLevel: record.dynamodb.NewImage.summonerLevel.N,
revisionDate: record.dynamodb.NewImage.revisionDate.N,
createdAt: record.dynamodb.NewImage.createdAt.S,
updatedAt: record.dynamodb.NewImage.updatedAt.S
}).then(function (user) {
console.log(user);
}).catch(function (err) {
console.log(err);
});
Error:
name: 'SequelizeDatabaseError',
message: 'syntax error at or near "RETURNING"',
parent:
{ [error: syntax error at or near "RETURNING"]
name: 'error',
length: 136,
severity: 'ERROR',
code: '42601',
detail: undefined,
hint: undefined,
position: '330',
internalPosition: undefined,
internalQuery: undefined,
where: undefined,
schema: undefined,
table: undefined,
column: undefined,
dataType: undefined,
constraint: undefined,
file: '/home/ec2-user/padb/src/pg/src/backend/parser/parser_scan.l',
line: '699',
routine: 'yyerror',
sql: 'INSERT INTO "Lol" ("id","userId","summonerId","name","profileIconId","summonerLevel","revisionDate","createdAt","updatedAt") VALUES (\'463d118c-2139-4679-8cdb-d07249bd2498\',\'a845a2ca-14c9-46de-93c6-d3dd1bd1a8a0\',\'2122373\',\'mariaraujo\',\'716\',\'30\',\'14804545500\',\'2017-01-09 18:50:15.282 +00:00\',\'2017-02-08 00:53:44.853 +00:00\') RETURNING *;' }
I could make it work, setting returning to false:
Lol.create({
id: record.dynamodb.NewImage.id.S,
userId: record.dynamodb.NewImage.userId.S,
summonerId: record.dynamodb.NewImage.summonerId.N,
name: record.dynamodb.NewImage.name.S,
profileIconId: record.dynamodb.NewImage.profileIconId.N,
summonerLevel: record.dynamodb.NewImage.summonerLevel.N,
revisionDate: record.dynamodb.NewImage.revisionDate.N,
createdAt: record.dynamodb.NewImage.createdAt.S,
updatedAt: record.dynamodb.NewImage.updatedAt.S
}, {returning: false}).then(function (user) {
console.log(user);
}).catch(function (err) {
console.log(err);
});
I'm trying to create a remote method that accepts XML, i define my remote method like this,
WechatModel.remoteMethod('notify', {
description: 'notify',
accepts: [
{
arg: 'response',
type: 'string',
required: true,
http: {
source: 'body',
},
},
],
http: {
verb: 'post',
path: '/notify',
},
});
then i changed my server/config.js like this:
"rest": {
"normalizeHttpPath": false,
"xml": true
},
but,i still got a string with the content "[object Object]"
In my remodeMethod, I set the incoming data as string like below:
{
http: {path: '/_html', verb: 'post'},
accepts: [
{arg: 'html', type: 'string', http: {source: 'body'}, description: 'HTML code.', required: true }
],
returns: {arg: 'data', type: 'object'}
}
And my request header is 'content-type': 'text/plain', my request body is plain text.
I put console.log( html ) at the first line when my function caught the variable.
It displays [object Object].
But I expect pure text. What can I do?
I tried JSON.stringify( html ) but it returns "[object Object]".