Hola!
Estoy intentando llamar al servicio para agregar al carro descrito aquí: Checkout API
Hemos verificado que el orderId sea el correcto, junto con el account name y el enviroment y aún así el servicio retorna lo siguiente:
{"errorType":"TypeError","errorMessage":"res.setHeader is not a function","trace":["TypeError: res.setHeader is not a function"," at enableCors (/var/task/.next/server/pages/api/proxy/[url].js:57:13)"," at ProxyServer.<anonymous> (/var/task/.next/server/pages/api/proxy/[url].js:68:13)"," at ProxyServer.emit (/var/task/node_modules/eventemitter3/index.js:204:33)"," at ClientRequest.<anonymous> (/var/task/node_modules/http-proxy/lib/http-proxy/passes/web-incoming.js:173:27)"," at ClientRequest.emit (node:events:513:28)"," at HTTPParser.parserOnIncomingClient [as onIncoming] (node:_http_client:693:27)"," at HTTPParser.parserOnHeadersComplete (node:_http_common:128:17)"," at TLSSocket.socketOnData (node:_http_client:534:22)"," at TLSSocket.emit (node:events:513:28)"," at addChunk (node:internal/streams/readable:315:12)"]}
Se obtiene el mismo error al llamar al servicio para limpiar el carro (Checkout API).
Tenemos certeza de que el orderId es el correcto ya que podemos llamar al servicio para obtener el carro con ese id y retorna el valor correcto (Get cart information by ID)
Gracias de antemano