SAP Knowledge Base Article - Preview

3697243 - CAS crash : Error: Client error: security session expired (220005) [amqp:unauthorized-access] [sapGatewayErrorCode: V1/220005]

Symptom

  • CAP services crashed
  • Application Log shows:

    Error: Client error: security session expired (220005) [amqp:unauthorized-access] [sapGatewayErrorCode: V1/220005]
    at ErrorValue.toObject (/home/vcap/app/node_modules/@sap/xb-msg-amqp-v100/lib/performative/types.js:712:16)
    at ConnectionState._onPeerClose (/home/vcap/app/node_modules/@sap/xb-msg-amqp-v100/lib/model/container.js:458:57)
    at ConnectionState._awaitFrame (/home/vcap/app/node_modules/@sap/xb-msg-amqp-v100/lib/model/container.js:571:22)
    at ConnectionState._onIncomingFrame (/home/vcap/app/node_modules/@sap/xb-msg-amqp-v100/lib/model/container.js:375:18)
    at WsReader.<anonymous> (/home/vcap/app/node_modules/@sap/xb-msg-amqp-v100/lib/model/container.js:295:59)
    at WsReader.emit (node:events:518:28)
    at addChunk (node:internal/streams/readable:561:12)
    at readableAddChunkPushObjectMode (node:internal/streams/readable:538:3)
    at Readable.push (node:internal/streams/readable:393:5)
    at Decoder._frameHandler (/home/vcap/app/node_modules/@sap/xb-msg-amqp-v100/lib/transport/tcp.js:62:29) 
  • And also following error occurs:

    Error: write EPIPE   
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:87:19)
    at WriteWrap.callbackTrampoline (node:internal/async_hooks:130:17)
    at writevGeneric (node:internal/stream_base_commons:137:26)
    at Socket._writeGeneric (node:net:969:11)
    at Socket._writev (node:net:978:8)
    at doWrite (node:internal/streams/writable:596:12)
    at clearBuffer (node:internal/streams/writable:775:5)
    at onwrite (node:internal/streams/writable:653:7)
    at WriteWrap.onWriteComplete [as oncomplete] (node:internal/stream_base_commons:105:10)
    at WriteWrap.callbackTrampoline (node:internal/async_hooks:130:17)


    (node:238) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 destroy listeners added to [Receiver]. MaxListeners is 10. Use emitter.setMaxListeners() to increase limit 


Read more...

Environment

SAP CAP – node.js runtime

Product

SAP Cloud Application Programming Model all versions

Keywords

CAP services, SAP Event integration, unauthorized-access error, security session expired, uncaught write epipe, memory leak, autoscaling, CAP CDS Node library, enterprise-messaging-shared, preserve error listener during reconnect, recurring crashes, SAP CAP node.js runtime , KBA , BC-XS-CDX-NJS , SAP CAP – node.js runtime , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.