CikeyQi/nai-plugin

手机上试着使用/以图生图,携带图片时出错。并手机上用/绘画带图无法上传参考图,

Closed this issue · 3 comments

手机端输入/以图生图时如图
ac0e6550c62c70c57f6694d67dc577d1

trss云崽端报错如下:
[17:48:01.857][INFO][Ai绘画英语学习外群(746311304), ★中★(1152003849)][#以图画图artist:curss,artist:hito_komoru,[artist:mochizuki_kei],artist:dino_(dinoartforame),artist:re...][nai-以图画图(img2img)][开始处理]
[
'artist:curss',
'artist:hito_komoru',
'[artist:mochizuki_kei]',
'artist:dino_(dinoartforame)',
'artist:rei_(sanbonzakura)',
'artist:rei_(sanbonzakura)',
'artist:wlop',
'artist:mignon',
'1girl',
'solo',
'from side',
'upper body',
'looking at viewer',
'floating hair',
'hand up',
'black gloves',
'white sun hat',
'swimsuit',
'cleavage',
'smile',
'closed mouth',
'light blue bikini',
'holding innertube',
'black shoulder bag',
'bracelet',
'bare shoulders',
'white sarong',
'blush',
'{{shiny_skin',
'oily',
'wet_skin',
'sweat',
'oily_skin}}',
''
]
AxiosError: Request failed with status code 400
at settle (file:///D:/QQ_bots/yunzai/Yunzai/node_modules/.pnpm/axios@1.7.2/node_modules/axios/lib/core/settle.js:19:12)
at IncomingMessage.handleStreamEnd (file:///D:/QQ_bots/yunzai/Yunzai/node_modules/.pnpm/axios@1.7.2/node_modules/axios/lib/adapters/http.js:589:11)
at IncomingMessage.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
at Axios.request (file:///D:/QQ_bots/yunzai/Yunzai/node_modules/.pnpm/axios@1.7.2/node_modules/axios/lib/core/Axios.js:45:41)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async url2Base64 (file:///D:/QQ_bots/yunzai/Yunzai/plugins/nai-plugin/utils/utils.js:9:18)
at async img2img (file:///D:/QQ_bots/yunzai/Yunzai/plugins/nai-plugin/apps/Img2img.js:39:30)
at async PluginsLoader.deal (file:///D:/QQ_bots/yunzai/Yunzai/lib/plugins/loader.js:265:41) {
code: 'ERR_BAD_REQUEST',
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [ 'xhr', 'http', 'fetch' ],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
env: { FormData: [Function], Blob: [class Blob] },
validateStatus: [Function: validateStatus],
headers: Object [AxiosHeaders] {
Accept: 'application/json, text/plain, /',
'Content-Type': undefined,
'User-Agent': 'axios/1.7.2',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
responseType: 'arraybuffer',
method: 'get',
url: 'https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=EhQwGEfAsD5xprpP01HdFuMg0zzZYxjggwgg_wootJHpudTviQMyBHByb2RQgL2jAVoQjfDkw-nE-qFVcg_DtwH4KA&spec=0&rkey=CAMSKMa3OFokB_Tl-t5yvqWLMzwN_w38gfSfEBxGccoyENH5fpKooBPRYYg',
data: undefined
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
finish: [Function: requestOnFinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: true,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: 0,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: true,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'multimedia.nt.qq.com.cn',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 9,
connecting: false,
_hadError: false,
_parent: null,
_host: 'multimedia.nt.qq.com.cn',
_closeAfterHandlingError: false,
_readableState: [ReadableState],
_writableState: [WritableState],
allowHalfOpen: false,
_maxListeners: undefined,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
timeout: 5000,
parser: null,
_httpMessage: null,
[Symbol(alpncallback)]: null,
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: -1,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: Timeout {
_idleTimeout: 5000,
_idlePrev: [TimersList],
_idleNext: [TimersList],
_idleStart: 695314,
_onTimeout: [Function: bound ],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(refed)]: false,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 21642,
[Symbol(triggerId)]: 21640
},
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: false,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 1,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object]
},
_header: 'GET /download?appid=1407&fileid=EhQwGEfAsD5xprpP01HdFuMg0zzZYxjggwgg_wootJHpudTviQMyBHByb2RQgL2jAVoQjfDkw-nE-qFVcg_DtwH4KA&spec=0&rkey=CAMSKMa3OFokB_Tl-t5yvqWLMzwN_w38gfSfEBxGccoyENH5fpKooBPRYYg HTTP/1.1\r\n' +
'Accept: application/json, text/plain, /\r\n' +
'User-Agent: axios/1.7.2\r\n' +
'Accept-Encoding: gzip, compress, deflate, br\r\n' +
'Host: multimedia.nt.qq.com.cn\r\n' +
'Connection: keep-alive\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype] {},
freeSockets: [Object: null prototype],
keepAliveMsecs: 1000,
keepAlive: true,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'GET',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: '/download?appid=1407&fileid=EhQwGEfAsD5xprpP01HdFuMg0zzZYxjggwgg_wootJHpudTviQMyBHByb2RQgL2jAVoQjfDkw-nE-qFVcg_DtwH4KA&spec=0&rkey=CAMSKMa3OFokB_Tl-t5yvqWLMzwN_w38gfSfEBxGccoyENH5fpKooBPRYYg',
_ended: true,
res: IncomingMessage {
_events: [Object],
_readableState: [ReadableState],
_maxListeners: undefined,
socket: null,
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
joinDuplicateHeaders: undefined,
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: true,
_dumped: false,
req: [Circular *1],
_eventsCount: 4,
responseUrl: 'https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=EhQwGEfAsD5xprpP01HdFuMg0zzZYxjggwgg_wootJHpudTviQMyBHByb2RQgL2jAVoQjfDkw-nE-qFVcg_DtwH4KA&spec=0&rkey=CAMSKMa3OFokB_Tl-t5yvqWLMzwN_w38gfSfEBxGccoyENH5fpKooBPRYYg',
redirects: [],
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 16,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'multimedia.nt.qq.com.cn',
protocol: 'https:',
_redirectable: Writable {
_events: [Object],
_writableState: [WritableState],
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 0,
_requestBodyBuffers: [],
_eventsCount: 3,
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=EhQwGEfAsD5xprpP01HdFuMg0zzZYxjggwgg_wootJHpudTviQMyBHByb2RQgL2jAVoQjfDkw-nE-qFVcg_DtwH4KA&spec=0&rkey=CAMSKMa3OFokB_Tl-t5yvqWLMzwN_w38gfSfEBxGccoyENH5fpKooBPRYYg',
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false
},
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'user-agent': [Array],
'accept-encoding': [Array],
host: [Array]
},
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
response: {
status: 400,
statusText: 'Bad Request',
headers: Object [AxiosHeaders] {
date: 'Fri, 22 Nov 2024 09:48:00 GMT',
server: 'FrontHttpd',
'x-errno': '-5503007',
'x-req-seq': '1513384623',
connection: 'keep-alive',
'x-echo-seq': '0',
'content-type': 'application/json',
'content-length': '70'
},
config: {
transitional: [Object],
adapter: [Array],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
env: [Object],
validateStatus: [Function: validateStatus],
headers: [Object [AxiosHeaders]],
responseType: 'arraybuffer',
method: 'get',
url: 'https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=EhQwGEfAsD5xprpP01HdFuMg0zzZYxjggwgg_wootJHpudTviQMyBHByb2RQgL2jAVoQjfDkw-nE-qFVcg_DtwH4KA&spec=0&rkey=CAMSKMa3OFokB_Tl-t5yvqWLMzwN_w38gfSfEBxGccoyENH5fpKooBPRYYg',
data: undefined
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: true,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: 0,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: true,
socket: [TLSSocket],
_header: 'GET /download?appid=1407&fileid=EhQwGEfAsD5xprpP01HdFuMg0zzZYxjggwgg_wootJHpudTviQMyBHByb2RQgL2jAVoQjfDkw-nE-qFVcg_DtwH4KA&spec=0&rkey=CAMSKMa3OFokB_Tl-t5yvqWLMzwN_w38gfSfEBxGccoyENH5fpKooBPRYYg HTTP/1.1\r\n' +
'Accept: application/json, text/plain, /\r\n' +
'User-Agent: axios/1.7.2\r\n' +
'Accept-Encoding: gzip, compress, deflate, br\r\n' +
'Host: multimedia.nt.qq.com.cn\r\n' +
'Connection: keep-alive\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'GET',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: '/download?appid=1407&fileid=EhQwGEfAsD5xprpP01HdFuMg0zzZYxjggwgg_wootJHpudTviQMyBHByb2RQgL2jAVoQjfDkw-nE-qFVcg_DtwH4KA&spec=0&rkey=CAMSKMa3OFokB_Tl-t5yvqWLMzwN_w38gfSfEBxGccoyENH5fpKooBPRYYg',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'multimedia.nt.qq.com.cn',
protocol: 'https:',
redirectable: [Writable],
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype],
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
data: <Buffer 7b 22 72 65 74 63 6f 64 65 22 3a 2d 35 35 30 33 30 30 37 2c 22 72 65 74 6d 73 67 22 3a 22 64 6f 77 6e 6c 6f 61 64 20 75 72 6c 20 68 61 73 20 65 78 70 ... 20 more bytes>
}
}
[17:48:02.038][ERRO][Ai绘画英语学习外群(746311304), ★中★(1152003849)][#以图画图artist:curss,artist:hito_komoru,[artist:mochizuki_kei],artist:dino
(dinoartforame),artist:re...][nai-以图画图(img2img)] TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
at Function.from (node:buffer:319:9)
at img2img (file:///D:/QQ_bots/yunzai/Yunzai/plugins/nai-plugin/apps/Img2img.js:39:25)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async PluginsLoader.deal (file:///D:/QQ_bots/yunzai/Yunzai/lib/plugins/loader.js:265:41) {
[stack]: 'TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined\n' +
' at Function.from (node:buffer:319:9)\n' +
' at img2img (file:///D:/QQ_bots/yunzai/Yunzai/plugins/nai-plugin/apps/Img2img.js:39:25)\n' +
' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async PluginsLoader.deal (file:///D:/QQ_bots/yunzai/Yunzai/lib/plugins/loader.js:265:41)',
code: 'ERR_INVALID_ARG_TYPE',
[message]: 'The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined',
[Symbol(kIsNodeError)]: [Getter: true]
}

手机上使用/绘画带图时,如图
1ea8c51c7b242bc021ca2aa8bd1b6752

trss云崽端报错如下:
[17:53:33.716][INFO][Ai绘画英语学习外群(746311304), ★中★(1152003849)][#绘画
artist:curss,artist:hito_komoru,[artist:mochizuki_kei],artist:dino_(dinoartforame),artist:rei...][nai-绘画(txt2img)][开始处理]
[
'\nartist:curss',
'artist:hito_komoru',
'[artist:mochizuki_kei]',
'artist:dino_(dinoartforame)',
'artist:rei_(sanbonzakura)',
'artist:rei_(sanbonzakura)',
'artist:wlop',
'artist:mignon',
'1girl',
'solo',
'from side',
'upper body',
'looking at viewer',
'floating hair',
'hand up',
'black gloves',
'white sun hat',
'swimsuit',
'cleavage',
'smile',
'closed mouth',
'light blue bikini',
'holding innertube',
'black shoulder bag',
'bracelet',
'bare shoulders',
'white sarong',
'blush',
'{{shiny_skin',
'oily',
'wet_skin',
'sweat',
'oily_skin}}',
''
]
AxiosError: Request failed with status code 400
at settle (file:///D:/QQ_bots/yunzai/Yunzai/node_modules/.pnpm/axios@1.7.2/node_modules/axios/lib/core/settle.js:19:12)
at IncomingMessage.handleStreamEnd (file:///D:/QQ_bots/yunzai/Yunzai/node_modules/.pnpm/axios@1.7.2/node_modules/axios/lib/adapters/http.js:589:11)
at IncomingMessage.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1696:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
at Axios.request (file:///D:/QQ_bots/yunzai/Yunzai/node_modules/.pnpm/axios@1.7.2/node_modules/axios/lib/core/Axios.js:45:41)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async url2Base64 (file:///D:/QQ_bots/yunzai/Yunzai/plugins/nai-plugin/utils/utils.js:9:18)
at async txt2img (file:///D:/QQ_bots/yunzai/Yunzai/plugins/nai-plugin/apps/Txt2img.js:41:42)
at async PluginsLoader.deal (file:///D:/QQ_bots/yunzai/Yunzai/lib/plugins/loader.js:265:41) {
code: 'ERR_BAD_REQUEST',
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [ 'xhr', 'http', 'fetch' ],
transformRequest: [ [Function: transformRequest] ],
transformResponse: [ [Function: transformResponse] ],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
env: { FormData: [Function], Blob: [class Blob] },
validateStatus: [Function: validateStatus],
headers: Object [AxiosHeaders] {
Accept: 'application/json, text/plain, /',
'Content-Type': undefined,
'User-Agent': 'axios/1.7.2',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
responseType: 'arraybuffer',
method: 'get',
url: 'https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=EhR6_ggbxnFMw3F2hyP7iF52iNVmdRiahEwg_woov6GT1tXviQMyBHByb2RQgL2jAVoQZE1USHWDEbWEfvxiXc-84w&spec=0&rkey=CAMSKMa3OFokB_Tl-t5yvqWLMzwN_w38gfSfEBxGccoyENH5fpKooBPRYYg',
data: undefined
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
finish: [Function: requestOnFinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: true,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: 0,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: true,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'multimedia.nt.qq.com.cn',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 9,
connecting: false,
_hadError: false,
_parent: null,
_host: 'multimedia.nt.qq.com.cn',
_closeAfterHandlingError: false,
_readableState: [ReadableState],
_writableState: [WritableState],
allowHalfOpen: false,
_maxListeners: undefined,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
timeout: 5000,
parser: null,
_httpMessage: null,
[Symbol(alpncallback)]: null,
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: -1,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: Timeout {
_idleTimeout: 5000,
_idlePrev: [TimersList],
_idleNext: [TimersList],
_idleStart: 1027211,
_onTimeout: [Function: bound ],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(refed)]: false,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 24117,
[Symbol(triggerId)]: 24115
},
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: false,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 1,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object]
},
_header: 'GET /download?appid=1407&fileid=EhR6_ggbxnFMw3F2hyP7iF52iNVmdRiahEwg_woov6GT1tXviQMyBHByb2RQgL2jAVoQZE1USHWDEbWEfvxiXc-84w&spec=0&rkey=CAMSKMa3OFokB_Tl-t5yvqWLMzwN_w38gfSfEBxGccoyENH5fpKooBPRYYg HTTP/1.1\r\n' +
'Accept: application/json, text/plain, /\r\n' +
'User-Agent: axios/1.7.2\r\n' +
'Accept-Encoding: gzip, compress, deflate, br\r\n' +
'Host: multimedia.nt.qq.com.cn\r\n' +
'Connection: keep-alive\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype] {},
freeSockets: [Object: null prototype],
keepAliveMsecs: 1000,
keepAlive: true,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'GET',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: '/download?appid=1407&fileid=EhR6_ggbxnFMw3F2hyP7iF52iNVmdRiahEwg_woov6GT1tXviQMyBHByb2RQgL2jAVoQZE1USHWDEbWEfvxiXc-84w&spec=0&rkey=CAMSKMa3OFokB_Tl-t5yvqWLMzwN_w38gfSfEBxGccoyENH5fpKooBPRYYg',
_ended: true,
res: IncomingMessage {
_events: [Object],
_readableState: [ReadableState],
_maxListeners: undefined,
socket: null,
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
joinDuplicateHeaders: undefined,
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: true,
_dumped: false,
req: [Circular *1],
_eventsCount: 4,
responseUrl: 'https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=EhR6_ggbxnFMw3F2hyP7iF52iNVmdRiahEwg_woov6GT1tXviQMyBHByb2RQgL2jAVoQZE1USHWDEbWEfvxiXc-84w&spec=0&rkey=CAMSKMa3OFokB_Tl-t5yvqWLMzwN_w38gfSfEBxGccoyENH5fpKooBPRYYg',
redirects: [],
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 16,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'multimedia.nt.qq.com.cn',
protocol: 'https:',
_redirectable: Writable {
_events: [Object],
_writableState: [WritableState],
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 0,
_requestBodyBuffers: [],
_eventsCount: 3,
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=EhR6_ggbxnFMw3F2hyP7iF52iNVmdRiahEwg_woov6GT1tXviQMyBHByb2RQgL2jAVoQZE1USHWDEbWEfvxiXc-84w&spec=0&rkey=CAMSKMa3OFokB_Tl-t5yvqWLMzwN_w38gfSfEBxGccoyENH5fpKooBPRYYg',
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false
},
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'user-agent': [Array],
'accept-encoding': [Array],
host: [Array]
},
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
response: {
status: 400,
statusText: 'Bad Request',
headers: Object [AxiosHeaders] {
date: 'Fri, 22 Nov 2024 09:53:32 GMT',
server: 'FrontHttpd',
'x-errno': '-5503007',
'x-req-seq': '1716317685',
connection: 'keep-alive',
'x-echo-seq': '0',
'content-type': 'application/json',
'content-length': '70'
},
config: {
transitional: [Object],
adapter: [Array],
transformRequest: [Array],
transformResponse: [Array],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
maxBodyLength: -1,
env: [Object],
validateStatus: [Function: validateStatus],
headers: [Object [AxiosHeaders]],
responseType: 'arraybuffer',
method: 'get',
url: 'https://multimedia.nt.qq.com.cn/download?appid=1407&fileid=EhR6_ggbxnFMw3F2hyP7iF52iNVmdRiahEwg_woov6GT1tXviQMyBHByb2RQgL2jAVoQZE1USHWDEbWEfvxiXc-84w&spec=0&rkey=CAMSKMa3OFokB_Tl-t5yvqWLMzwN_w38gfSfEBxGccoyENH5fpKooBPRYYg',
data: undefined
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: true,
_last: true,
chunkedEncoding: false,
shouldKeepAlive: true,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: false,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: 0,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: true,
socket: [TLSSocket],
header: 'GET /download?appid=1407&fileid=EhR6_ggbxnFMw3F2hyP7iF52iNVmdRiahEwg_woov6GT1tXviQMyBHByb2RQgL2jAVoQZE1USHWDEbWEfvxiXc-84w&spec=0&rkey=CAMSKMa3OFokB_Tl-t5yvqWLMzwN_w38gfSfEBxGccoyENH5fpKooBPRYYg HTTP/1.1\r\n' +
'Accept: application/json, text/plain, /\r\n' +
'User-Agent: axios/1.7.2\r\n' +
'Accept-Encoding: gzip, compress, deflate, br\r\n' +
'Host: multimedia.nt.qq.com.cn\r\n' +
'Connection: keep-alive\r\n' +
'\r\n',
keepAliveTimeout: 0,
onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'GET',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: '/download?appid=1407&fileid=EhR6_ggbxnFMw3F2hyP7iF52iNVmdRiahEwg_woov6GT1tXviQMyBHByb2RQgL2jAVoQZE1USHWDEbWEfvxiXc-84w&spec=0&rkey=CAMSKMa3OFokB_Tl-t5yvqWLMzwN_w38gfSfEBxGccoyENH5fpKooBPRYYg',
ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'multimedia.nt.qq.com.cn',
protocol: 'https:',
redirectable: [Writable],
[Symbol(shapeMode)]: false,
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype],
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
data: <Buffer 7b 22 72 65 74 63 6f 64 65 22 3a 2d 35 35 30 33 30 30 37 2c 22 72 65 74 6d 73 67 22 3a 22 64 6f 77 6e 6c 6f 61 64 20 75 72 6c 20 68 61 73 20 65 78 70 ... 20 more bytes>
}
}
用户ID:1152003849发起了一次请求
{
input: '\n' +
'artist:curss,artist:hito_komoru,[artist:mochizuki_kei],artist:dino
(dinoartforame),artist:rei
(sanbonzakura),artist:rei
(sanbonzakura),artist:wlop,artist:mignon,1girl,solo,from side,upper body,looking at viewer,floating hair,hand up,black gloves,white sun hat,swimsuit,cleavage,smile,closed mouth,light blue bikini,holding innertube,black shoulder bag,bracelet,bare shoulders,white sarong,blush,{{shiny_skin,oily,wet_skin,sweat,oily_skin}},',
model: 'nai-diffusion-3',
action: 'generate',
parameters: {
width: 832,
height: 1216,
scale: 6.5,
sampler: 'k_euler',
steps: 28,
n_samples: 1,
ucPreset: 0,
qualityToggle: true,
reference_information_extracted: 1,
reference_strength: 0.6,
sm: true,
sm_dyn: true,
dynamic_thresholding: false,
controlnet_strength: 1,
legacy: false,
legacy_v3_extend: false,
add_original_image: true,
uncond_scale: 1,
cfg_rescale: 0,
noise_schedule: 'native',
params_version: 1,
seed: 649664662,
negative_prompt: 'tail,mutated hands, mutated fingers, fused fingers, extra fingers, milk, lowres, {bad}, error, fewer, extra, missing, worst quality, jpeg artifacts, watermark, unfinished, displeasing, chromatic aberration, signature, extra digits, artistic error, username, scan, [abstract], {{weibo_username}}, female_pubic_hair, {{weibo_logo}}, low quality, @
@, chibi, character doll, multiple girls, {{{{{chibi,doll}}}}} inset',
reference_image: undefined
}
}
[17:53:33.957][INFO][1664406961 => 746311304] 发送群消息:[{"type":"text","data":{"text":"踏马的,我要开始画图了!前面还有0人,我踏马的还需要14秒完成 全部画图任务!给我等着!"}}]
[17:53:33.958][MARK][Ai绘画英语学习外群(746311304), ★中★(1152003849)][#绘画
artist:curss,artist:hito_komoru,[artist:mochizuki_kei],artist:dino
(dinoartforame),artist:rei...][nai-绘画(txt2img)][完成0.242秒]
D:\QQ_bots\yunzai\Yunzai\plugins\nai-plugin\resources/userPic/1152003849/1732269221347.zip
[17:53:41.355][INFO][1664406961 => 746311304] 发送群消息:[{"type":"text","data":{"text":"TMD,画好了!看吧!死涩批~~\n本次图片ID为:1732269221347"}}]

提交Issue的期望:能够在手机上带图绘画

你使用的协议端获取到的图片无效,非插件问题。该问题具体体现在机器人无法获取用户发送的图片,如 上传面板图搜图取图链 等需要获取用户发送图片的功能均无法使用

原来是我使用的napcat协议端的问题,了解了,感谢回答。