Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error occurred while getting the accounts: #86

Open
hridoysaha969 opened this issue Dec 21, 2024 · 0 comments
Open

An error occurred while getting the accounts: #86

hridoysaha969 opened this issue Dec 21, 2024 · 0 comments

Comments

@hridoysaha969
Copy link

I completed the project few weeks ago. But now I am facing this error after logging in.

An error occurred while getting the accounts: AxiosError: read ECONNRESET
at AxiosError.from (webpack-internal:///(rsc)/./node_modules/axios/dist/node/axios.cjs:877:14)
at RedirectableRequest.handleRequestError (webpack-internal:///(rsc)/./node_modules/axios/dist/node/axios.cjs:3163:25)
at RedirectableRequest.emit (node:events:519:28)
at eventHandlers. (webpack-internal:///(rsc)/./node_modules/follow-redirects/index.js:49:24)
at eval (webpack-internal:///(instrument)/./node_modules/@opentelemetry/context-async-hooks/build/src/AbstractAsyncHooksContextManager.js:50:55)
at AsyncLocalStorage.run (node:async_hooks:346:14)
at SentryContextManager.with (webpack-internal:///(instrument)/./node_modules/@opentelemetry/context-async-hooks/build/src/AsyncLocalStorageContextManager.js:33:40)
at SentryContextManager.with (webpack-internal:///(instrument)/./node_modules/@sentry/opentelemetry/build/cjs/index.js:1385:24)
at ClientRequest.contextWrapper (webpack-internal:///(instrument)/./node_modules/@opentelemetry/context-async-hooks/build/src/AbstractAsyncHooksContextManager.js:50:32)
at ClientRequest.emit (node:events:519:28)
at emitErrorEvent (node:_http_client:108:11)
at TLSSocket.socketErrorListener (node:_http_client:511:5)
at TLSSocket.emit (node:events:519:28)
at emitErrorNT (node:internal/streams/destroy:169:8)
at emitErrorCloseNT (node:internal/streams/destroy:128:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
at Axios.request (webpack-internal:///(rsc)/./node_modules/axios/dist/node/axios.cjs:4252:41)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async eval (webpack-internal:///(rsc)/./src/lib/actions/bank.actions.ts:36:38)
at async Promise.all (index 0)
at async $$ACTION_0 (webpack-internal:///(rsc)/./src/lib/actions/bank.actions.ts:34:26)
at async Home (webpack-internal:///(rsc)/./src/app/(root)/page.tsx:39:22) {
syscall: 'read',
code: 'ECONNRESET',
errno: -4077,
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': 'application/json',
'User-Agent': 'Plaid Node v29.0.0',
'Plaid-Version': '2020-09-14',
'PLAID-CLIENT-ID': '6724d1218e24b9001a6b9b34',
'PLAID-SECRET': '20434d3c6c407b420bdcdcda19b44f',
'Content-Length': '70',
'Accept-Encoding': 'gzip, compress, deflate, br'
},
method: 'post',
data: '{"access_token":"access-sandbox-3f44711c-aca5-46ba-add9-2f44d58a5786"}',
url: 'https://sandbox.plaid.com/accounts/get'
},
request: <ref *1> Writable {
_events: {
close: undefined,
error: [Function: handleRequestError],
prefinish: undefined,
finish: undefined,
drain: undefined,
response: [Function: handleResponse],
socket: [Function: handleRequestSocket]
},
_writableState: WritableState {
highWaterMark: 16384,
length: 0,
corked: 0,
onwrite: [Function: bound onwrite],
writelen: 0,
bufferedIndex: 0,
pendingcb: 0,
[Symbol(kState)]: 17580812,
[Symbol(kBufferedValue)]: null
},
_maxListeners: undefined,
_options: {
maxRedirects: 21,
maxBodyLength: Infinity,
protocol: 'https:',
path: '/accounts/get',
method: 'POST',
headers: [Object: null prototype],
agents: [Object],
auth: undefined,
family: undefined,
beforeRedirect: [Function: dispatchBeforeRedirect],
beforeRedirects: [Object],
hostname: 'sandbox.plaid.com',
port: '',
agent: undefined,
nativeProtocols: [Object],
pathname: '/accounts/get'
},
_ended: false,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 70,
_requestBodyBuffers: [ [Object] ],
_eventsCount: 3,
_onNativeResponse: [Function (anonymous)],
_currentRequest: ClientRequest {
_events: [Object: null prototype],
_eventsCount: 9,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: false,
_last: false,
chunkedEncoding: false,
shouldKeepAlive: true,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: '70',
_hasBody: true,
_trailer: '',
finished: false,
_headerSent: true,
_closed: false,
socket: [TLSSocket],
_header: 'POST /accounts/get HTTP/1.1\r\n' +
'Accept: application/json, text/plain, /\r\n' +
'Content-Type: application/json\r\n' +
'User-Agent: Plaid Node v29.0.0\r\n' +
'Plaid-Version: 2020-09-14\r\n' +
'PLAID-CLIENT-ID: 6724d1218e24b9001a6b9b34\r\n' +
'PLAID-SECRET: 20434d3c6c407b420bdcdcda19b44f\r\n' +
'Content-Length: 70\r\n' +
'Accept-Encoding: gzip, compress, deflate, br\r\n' +
'sentry-trace: 78a5c83a8df049069e8dd8621d7317e5-d1c90418099d334c-1\r\n' +
'baggage: sentry-environment=development,sentry-public_key=fc39caac1785b54f29b30e1186568485,sentry-trace_id=78a5c83a8df049069e8dd8621d7317e5,sentry-sample_rate=1,sentry-sampled=true\r\n' +
'Host: sandbox.plaid.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: '/accounts/get',
_ended: false,
res: null,
aborted: false,
timeoutCb: [Function: emitRequestTimeout],
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: false,
host: 'sandbox.plaid.com',
protocol: 'https:',
addListener: [Function (anonymous)],
on: [Function (anonymous)],
once: [Function (anonymous)],
prependListener: [Function (anonymous)],
prependOnceListener: [Function (anonymous)],
removeListener: [Function (anonymous)],
off: [Function (anonymous)],
removeAllListeners: [Function (anonymous)],
_redirectable: [Circular *1],
[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,
[Symbol(OtListeners)]: [Object: null prototype]
},
_currentUrl: 'https://sandbox.plaid.com/accounts/get',
[Symbol(shapeMode)]: true,
[Symbol(kCapture)]: false
},
cause: Error: read ECONNRESET
at TLSWrap.onStreamRead (node:internal/stream_base_commons:218:20)
at TLSWrap.callbackTrampoline (node:internal/async_hooks:130:17) {
errno: -4077,
code: 'ECONNRESET',
syscall: 'read'
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant