-1

嗨,一旦我填写了联系表格并按下提交按钮,我收到以下错误,有人可以提供任何帮助吗?

            Error creating new complaint Error
                at new circuit.Error (C:\Users\chrisconnolly\customer-support\node_modules\circuit-sdk\circuit.js:311:22)
                at C:\Users\chrisconnolly\customer-support\node_modules\circuit-sdk\circuit.js:55977:28
                at new Promise (<anonymous>)
                at Object.createGroupConversation (C:\Users\chrisconnolly\customer-support\node_modules\circuit-sdk\circuit.js:55966:20)
                at Object.createConversation (C:\Users\chrisconnolly\customer-support\circuit.js:23:19)
                at Socket.<anonymous> (C:\Users\chrisconnolly\customer-support\server.js:78:32)
                at Socket.emit (events.js:200:13)
                at C:\Users\chrisconnolly\customer-support\node_modules\socket.io\lib\socket.js:513:12
                at processTicksAndRejections (internal/process/task_queues.js:82:9) {
              code: 'SDK_ERROR',
              message: 'At least one participant (other than self) is required',
              stack: 'Error\n    at new circuit.Error ' +
                '(C:\\Users\\chrisconnolly\\customer-support\\node_modules\\circuit-sdk\\circuit.js:311:22)\n' +
                '    at ' +
                'C:\\Users\\chrisconnolly\\customer-support\\node_modules\\circuit-sdk\\circuit.js:55977:28\n' +
                '    at new Promise (<anonymous>)\n    at ' +
                'Object.createGroupConversation ' +
                '(C:\\Users\\chrisconnolly\\customer-support\\node_modules\\circuit-sdk\\circuit.js:55966:20)\n' +
                '    at Object.createConversation ' +
                '(C:\\Users\\chrisconnolly\\customer-support\\circuit.js:23:19)\n    at ' +
                'Socket.<anonymous> ' +
                '(C:\\Users\\chrisconnolly\\customer-support\\server.js:78:32)\n    at ' +
                'Socket.emit (events.js:200:13)\n    at ' +
                'C:\\Users\\chrisconnolly\\customer-support\\node_modules\\socket.io\\lib\\socket.js:513:12\n' +
                '    at processTicksAndRejections ' +
                '(internal/process/task_queues.js:82:9)'
4

1 回答 1

0

有关特定示例应用程序的问题最好在其各自的 repo 问题页面中发布。即https://github.com/circuit/customer-support/issues

现在查看您收到的错误,它显示“server.js:78”(https://github.com/circuit/customer-support/blob/master/server.js#L78),这是 createConversation API。并且鉴于错误显示“需要至少一个参与者(除了自己)”,我怀疑您没有将任何用户作为第一个参数传递。查看https://github.com/circuit/customer-support/blob/master/server.js#L54表明这些 supportUsers 来自配置文件“config.json”。

您是否按照自述文件中的说明将 config.json.template 重命名为 config.json?您是否与那些支持用户一起编辑了配置文件(https://github.com/circuit/customer-support/blob/master/config.json.template#L26 )?

于 2019-06-26T15:18:22.790 回答