<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Hybris API called from NextJS app in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hybris-api-called-from-nextjs-app/m-p/12458797#M2000091</link>
    <description>&lt;P&gt;I am not able to run the app as its giving the following error - ITs a SSL invalid certificate issue -&lt;/P&gt;
  &lt;P&gt;In postman I am able to run it by suppressing the warning - Can anyone tell me where is the certificate file stored and can it be replaced or how to make it work&lt;/P&gt;
  &lt;P&gt;FetchError: request to &lt;A href="https://127.0.0.1:9002/us-admin/rest/v2/rodanandfields-us/products/AAWA125?fields=DEFAULT" target="test_blank"&gt;https://127.0.0.1:9002/us-admin/rest/v2/rodanandfields-us/products/AAWA125?fields=DEFAULT&lt;/A&gt; failed, reason: connect ECONNREFUSED 127.0.0.1:9002 at ClientRequest.&amp;lt;anonymous&amp;gt; (/Users/stirupachur/ContentStackDiscovery/rodanplusfields-Aug12/node_modules/node-fetch/lib/index.js:1461:11) at ClientRequest.emit (events.js:375:28) at TLSSocket.socketErrorListener (_http_client.js:475:9) at TLSSocket.emit (events.js:375:28) at emitErrorNT (internal/streams/destroy.js:106:8) at emitErrorCloseNT (internal/streams/destroy.js:74:3) at processTicksAndRejections (internal/process/task_queues.js:82:21) { type: 'system', errno: 'ECONNREFUSED', code: 'ECONNREFUSED' }&lt;/P&gt;
  &lt;P&gt;----------------------------------------------------------------------------------------------------&lt;/P&gt;
  &lt;P&gt;Ran the openssl and got the following&lt;/P&gt;
  &lt;P&gt;openssl s_client -CApath /Users/stirupachur/ContentStackDiscovery/certs/ -connect localhost:9002&lt;/P&gt;
  &lt;P&gt;CONNECTED(00000005)&lt;/P&gt;
  &lt;P&gt;depth=0 C = DE, ST = platform, L = platform, CN = hybris&lt;/P&gt;
  &lt;P&gt;verify error:num=20:unable to get local issuer certificate&lt;/P&gt;
  &lt;P&gt;verify return:1&lt;/P&gt;
  &lt;P&gt;depth=0 C = DE, ST = platform, L = platform, CN = hybris&lt;/P&gt;
  &lt;P&gt;verify error:num=21:unable to verify the first certificate&lt;/P&gt;
  &lt;P&gt;verify return:1&lt;/P&gt;</description>
    <pubDate>Wed, 25 Aug 2021 00:19:33 GMT</pubDate>
    <dc:creator>stirupachur</dc:creator>
    <dc:date>2021-08-25T00:19:33Z</dc:date>
    <item>
      <title>Hybris API called from NextJS app</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hybris-api-called-from-nextjs-app/m-p/12458797#M2000091</link>
      <description>&lt;P&gt;I am not able to run the app as its giving the following error - ITs a SSL invalid certificate issue -&lt;/P&gt;
  &lt;P&gt;In postman I am able to run it by suppressing the warning - Can anyone tell me where is the certificate file stored and can it be replaced or how to make it work&lt;/P&gt;
  &lt;P&gt;FetchError: request to &lt;A href="https://127.0.0.1:9002/us-admin/rest/v2/rodanandfields-us/products/AAWA125?fields=DEFAULT" target="test_blank"&gt;https://127.0.0.1:9002/us-admin/rest/v2/rodanandfields-us/products/AAWA125?fields=DEFAULT&lt;/A&gt; failed, reason: connect ECONNREFUSED 127.0.0.1:9002 at ClientRequest.&amp;lt;anonymous&amp;gt; (/Users/stirupachur/ContentStackDiscovery/rodanplusfields-Aug12/node_modules/node-fetch/lib/index.js:1461:11) at ClientRequest.emit (events.js:375:28) at TLSSocket.socketErrorListener (_http_client.js:475:9) at TLSSocket.emit (events.js:375:28) at emitErrorNT (internal/streams/destroy.js:106:8) at emitErrorCloseNT (internal/streams/destroy.js:74:3) at processTicksAndRejections (internal/process/task_queues.js:82:21) { type: 'system', errno: 'ECONNREFUSED', code: 'ECONNREFUSED' }&lt;/P&gt;
  &lt;P&gt;----------------------------------------------------------------------------------------------------&lt;/P&gt;
  &lt;P&gt;Ran the openssl and got the following&lt;/P&gt;
  &lt;P&gt;openssl s_client -CApath /Users/stirupachur/ContentStackDiscovery/certs/ -connect localhost:9002&lt;/P&gt;
  &lt;P&gt;CONNECTED(00000005)&lt;/P&gt;
  &lt;P&gt;depth=0 C = DE, ST = platform, L = platform, CN = hybris&lt;/P&gt;
  &lt;P&gt;verify error:num=20:unable to get local issuer certificate&lt;/P&gt;
  &lt;P&gt;verify return:1&lt;/P&gt;
  &lt;P&gt;depth=0 C = DE, ST = platform, L = platform, CN = hybris&lt;/P&gt;
  &lt;P&gt;verify error:num=21:unable to verify the first certificate&lt;/P&gt;
  &lt;P&gt;verify return:1&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 00:19:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hybris-api-called-from-nextjs-app/m-p/12458797#M2000091</guid>
      <dc:creator>stirupachur</dc:creator>
      <dc:date>2021-08-25T00:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hybris API called from NextJS app</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hybris-api-called-from-nextjs-app/m-p/12458798#M2000092</link>
      <description>&lt;P&gt;Can you please send screenshots and describe what exactly are you trying to do? Running postman i assume also you can store certificate elswhere &lt;A href="https://learning.postman.com/docs/sending-requests/certificates/"&gt;Working with certificates | Postman Learning Center&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But you seem to have issue with running app - does it mean you expect to have stored certificate on local machine, or in SAP Cloud, etc.?&lt;/P&gt;</description>
      <pubDate>Thu, 26 Aug 2021 22:30:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hybris-api-called-from-nextjs-app/m-p/12458798#M2000092</guid>
      <dc:creator>RobertJancich</dc:creator>
      <dc:date>2021-08-26T22:30:05Z</dc:date>
    </item>
  </channel>
</rss>

