Midjourney API

FREEMIUM
Popularity

9.5 / 10

Latency

603ms

Service Level

100%

Health Check

100%

Back to All Discussions

Job not finishing

Rapid account: Superveloce
Superveloce
11 giorni fa

Hey there - It was working fine earlier, but now it doesnt finish the upscaling portion. I have not changed any of the code. full error log below

code: ‘ERR_BAD_REQUEST’,
config: {
transitional: {
silentJSONParsing: true,
forcedJSONParsing: true,
clarifyTimeoutError: false
},
adapter: [ ‘xhr’, ‘http’ ],
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’: ‘application/json’,
‘X-RapidAPI-Key’: ‘38e3e2ec22msha33ee1ade456695p102887jsnb40f347b36d9’,
‘X-RapidAPI-Host’: ‘midjourney-api9.p.rapidapi.com’,
‘User-Agent’: ‘axios/1.6.8’,
‘Content-Length’: ‘82’,
‘Accept-Encoding’: ‘gzip, compress, deflate, br’
},
method: ‘post’,
url: ‘https://midjourney-api9.p.rapidapi.com/api/v1/execute-option’,
data: ‘{“option”:0,“parent_id”:“9bbee842-2bcf-484c-827e-d0af7c1ebefa”,“webhook_url”:null}’
},
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: false,
chunkedEncoding: false,
shouldKeepAlive: true,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: ‘82’,
_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: ‘midjourney-api9.p.rapidapi.com’,
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 9,
connecting: false,
_hadError: false,
_parent: null,
_host: ‘midjourney-api9.p.rapidapi.com’,
_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,
autoSelectFamilyAttemptedAddresses: [Array],
[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: 20821,
_onTimeout: [Function: bound ],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(refed)]: false,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 284,
[Symbol(triggerId)]: 282
},
[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: ‘POST /api/v1/execute-option HTTP/1.1\r\n’ +
‘Accept: application/json, text/plain, /\r\n’ +
‘Content-Type: application/json\r\n’ +
‘X-RapidAPI-Key: 38e3e2ec22msha33ee1ade456695p102887jsnb40f347b36d9\r\n’ +
‘X-RapidAPI-Host: midjourney-api9.p.rapidapi.com\r\n’ +
‘User-Agent: axios/1.6.8\r\n’ +
‘Content-Length: 82\r\n’ +
‘Accept-Encoding: gzip, compress, deflate, br\r\n’ +
‘Host: midjourney-api9.p.rapidapi.com\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: ‘POST’,
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: ‘/api/v1/execute-option’,
_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: 422,
statusMessage: ‘’,
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
_eventsCount: 4,
responseUrl: ‘https://midjourney-api9.p.rapidapi.com/api/v1/execute-option’,
redirects: [],
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 32,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: true,
host: ‘midjourney-api9.p.rapidapi.com’,
protocol: ‘https:’,
_redirectable: Writable {
_events: [Object],
_writableState: [WritableState],
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 82,
_requestBodyBuffers: [],
_eventsCount: 3,
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: ‘https://midjourney-api9.p.rapidapi.com/api/v1/execute-option’,
[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],
‘content-type’: [Array],
‘x-rapidapi-key’: [Array],
‘x-rapidapi-host’: [Array],
‘user-agent’: [Array],
‘content-length’: [Array],
‘accept-encoding’: [Array],
host: [Array]
},
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
response: {
status: 422,
statusText: ‘’,
headers: Object [AxiosHeaders] {
date: ‘Thu, 09 May 2024 00:15:18 GMT’,
‘content-type’: ‘application/json; charset=UTF-8’,
‘content-length’: ‘93’,
connection: ‘keep-alive’,
‘x-ratelimit-requests-limit’: ‘1000’,
‘x-ratelimit-requests-remaining’: ‘829’,
‘x-ratelimit-requests-reset’: ‘60114’,
‘x-ratelimit-poll-results-limit’: ‘1000’,
‘x-ratelimit-poll-results-remaining’: ‘908’,
‘x-ratelimit-poll-results-reset’: ‘60114’,
‘x-ratelimit-generation-api-limit’: ‘600’,
‘x-ratelimit-generation-api-remaining’: ‘521’,
‘x-ratelimit-generation-api-reset’: ‘2652114’,
server: ‘RapidAPI-1.2.8’,
‘x-rapidapi-version’: ‘1.2.8’,
‘x-rapidapi-region’: ‘AWS - ap-southeast-1’
},
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]],
method: ‘post’,
url: ‘https://midjourney-api9.p.rapidapi.com/api/v1/execute-option’,
data: ‘{“option”:0,“parent_id”:“9bbee842-2bcf-484c-827e-d0af7c1ebefa”,“webhook_url”:null}’
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: true,
_last: false,
chunkedEncoding: false,
shouldKeepAlive: true,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: ‘82’,
_hasBody: true,
_trailer: ‘’,
finished: true,
_headerSent: true,
_closed: true,
socket: [TLSSocket],
_header: ‘POST /api/v1/execute-option HTTP/1.1\r\n’ +
‘Accept: application/json, text/plain, /\r\n’ +
‘Content-Type: application/json\r\n’ +
‘X-RapidAPI-Key: 38e3e2ec22msha33ee1ade456695p102887jsnb40f347b36d9\r\n’ +
‘X-RapidAPI-Host: midjourney-api9.p.rapidapi.com\r\n’ +
‘User-Agent: axios/1.6.8\r\n’ +
‘Content-Length: 82\r\n’ +
‘Accept-Encoding: gzip, compress, deflate, br\r\n’ +
‘Host: midjourney-api9.p.rapidapi.com\r\n’ +
‘Connection: keep-alive\r\n’ +
’\r\n’,
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: ‘POST’,
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: ‘/api/v1/execute-option’,
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: true,
host: ‘midjourney-api9.p.rapidapi.com’,
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: {
Status: 422,
code: ‘JOB_NOT_FINISHED’,
description: ‘The job should have finished status’
}
}
}

Rapid account: Neigrok
neigrok Commented 11 giorni fa

Hey!

The job didn’t finish successfully, it is in a failed state as well as several other jobs, because discord changed its API this night.
The problem is already resolved and everything should work as expected. Regarding failed jobs - I cant retry them, because I don’t store prompts/execution options/other user data. Sorry about it

And don’t expose your api key in public discussions 😉

All the best,

Join in the discussion - add comment below:

Login / Signup to post new comments