<?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 Re: Getting DB Provider error with Adobe IO Rest Service in Project Firefly Questions</title>
    <link>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/getting-db-provider-error-with-adobe-io-rest-service/m-p/431226#M540</link>
    <description>&lt;P&gt;&lt;LI-USER uid="17377904"&gt;&lt;/LI-USER&gt;&amp;nbsp;- could you try state init without custom ow auth. Simply this:&lt;/P&gt;&lt;PRE&gt;let state = await libState.init();&lt;/PRE&gt;&lt;P&gt;Why do you need to pass the custom Openwhisk namespace + auth?&lt;/P&gt;</description>
    <pubDate>Fri, 12 Nov 2021 15:30:05 GMT</pubDate>
    <dc:creator>duypnguyen</dc:creator>
    <dc:date>2021-11-12T15:30:05Z</dc:date>
    <item>
      <title>Getting DB Provider error with Adobe IO Rest Service</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/getting-db-provider-error-with-adobe-io-rest-service/m-p/431094#M539</link>
      <description>&lt;P&gt;Adobe IO Rest service throwing error.&amp;nbsp; Here is the engineering ticekt raised for the below error.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;IOEXT-65. Please provide the cause and solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the code we are using.&lt;/P&gt;&lt;DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;var&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;processEnv&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&g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&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;let&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;state&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;await&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;libState&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;init&lt;/SPAN&gt;&lt;SPAN&gt;({&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;ow&lt;/SPAN&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;{&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;namespace&lt;/SPAN&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;auth&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;}&amp;nbsp;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;2021-11-05 14:37:50.196 INFO [com.tdl.pwa.core.workflows.PushHomePageDataToWorkflow] /content/tcp-pwa/pwa/en/homepage payload response is {"payload":{"response":{"headers":{"date":"Fri, 05 Nov 2021 09:07:49 GMT","x-request-id":"ps4Fp5sx7nNbkS3Y7IsapCuMda4xfLrl","content-length":"636","x-azure-ref":"0ZfSEYQAAAADL1oxU5e3iQripQ6dy0+JoU0lOMzBFREdFMDIwOABiNzdiNjYzMy04ZjcwLTQyNWItOTJiZC03NmFlYmU5YWI5YzU=","x-openwhisk-activation-id":"bd8a5b1bf41a4e718a5b1bf41a1e71bf","access-control-allow-headers":"Authorization, Origin, X-Requested-With, Content-Type, Accept, User-Agent","x-frame-options":"deny","access-control-allow-methods":"OPTIONS, GET, DELETE, POST, PUT, HEAD, PATCH","strict-transport-security":"max-age=7884000; includeSubDomains","access-control-allow-origin":"*","x-content-type-options":"nosniff","x-xss-protection":"1; mode=block","connection":"close","content-type":"application/json","x-cache":"CONFIG_NOCACHE"},"request":{"headers":{"content-length":86,"content-type":"application/json","X-OW-EXTRA-LOGGING":"on","accept":"application/json"},"method":"POST","uri":{"path":"/api/v1/web/homepage-0.0.1/homepageService","hostname":"288455-319plumdinosaur.adobeioruntime.net","protocol":"https:","search":null,"auth":null,"port":443,"query":null,"host":"288455-319plumdinosaur.adobeioruntime.net","href":"&lt;A href="https://288455-319plumdinosaur.adobeioruntime.net/api/v1/web/homepage-0.0.1/homepageService" target="_blank" rel="noopener"&gt;https://288455-319plumdinosaur.adobeioruntime.net/api/v1/web/homepage-0.0.1/homepageService&lt;/A&gt;","hash":null,"pathname":"/api/v1/web/homepage-0.0.1/homepageService","slashes":true}},"body":{"payload":{"sdkDetails":{"key":"homepage_json"},"code":"ERROR_BAD_CREDENTIALS","stacktrace":"StateLibError: [StateLib:ERROR_BAD_CREDENTIALS] cannot access underlying DB provider, make sure your credentials are valid\n at new &amp;lt;anonymous&amp;gt; (/nodejsAction/OofwFjKo/index.js:719:9)\n at wrap (/nodejsAction/OofwFjKo/index.js:2558:19)\n at runMicrotasks (&amp;lt;anonymous&amp;gt;)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","sdk":"StateLib","message":"[StateLib:ERROR_BAD_CREDENTIALS] cannot access underlying DB provider, make sure your credentials are valid"}},"statusCode":500},"name":"StatusCodeError","options":{"headers":{"X-OW-EXTRA-LOGGING":"on"},"method":"POST","json":true,"simple":true,"body":{"pageInfo.pageName":"Homepage","update":true,"device":"PWA","tcpId":"serversideuser"},"resolveWithFullResponse":false,"transform2xxOnly":false,"uri":"&lt;A href="https://288455-319plumdinosaur.adobeioruntime.net/api/v1/web/homepage-0.0.1/homepageService" target="_blank" rel="noopener"&gt;https://288455-319plumdinosaur.adobeioruntime.net/api/v1/web/homepage-0.0.1/homepageService&lt;/A&gt;"},"error":{"payload":{"sdkDetails":{"key":"homepage_json"},"code":"ERROR_BAD_CREDENTIALS","stacktrace":"StateLibError: [StateLib:ERROR_BAD_CREDENTIALS] cannot access underlying DB provider, make sure your credentials are valid\n at new &amp;lt;anonymous&amp;gt; (/nodejsAction/OofwFjKo/index.js:719:9)\n at wrap (/nodejsAction/OofwFjKo/index.js:2558:19)\n at runMicrotasks (&amp;lt;anonymous&amp;gt;)\n at processTicksAndRejections (internal/process/task_queues.js:97:5)","sdk":"StateLib","message":"[StateLib:ERROR_BAD_CREDENTIALS] cannot access underlying DB provider, make sure your credentials are valid"}},"message":"500 - {\"payload\":{\"code\":\"ERROR_BAD_CREDENTIALS\",\"message\":\"[StateLib:ERROR_BAD_CREDENTIALS] cannot access underlying DB provider, make sure your credentials are valid\",\"sdk\":\"StateLib\",\"sdkDetails\":{\"key\":\"homepage_json\"},\"stacktrace\":\"StateLibError: [StateLib:ERROR_BAD_CREDENTIALS] cannot access underlying DB provider, make sure your credentials are valid\\n at new &amp;lt;anonymous&amp;gt; (/nodejsAction/OofwFjKo/index.js:719:9)\\n at _wrap (/nodejsAction/OofwFjKo/index.js:2558:19)\\n at runMicrotasks (&amp;lt;anonymous&amp;gt;)\\n at processTicksAndRejections (internal/process/task_queues.js:97:5)\"}}","statusCode":500},"error":true}&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 03:03:27 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/getting-db-provider-error-with-adobe-io-rest-service/m-p/431094#M539</guid>
      <dc:creator>SahithiMalyala</dc:creator>
      <dc:date>2021-11-12T03:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: Getting DB Provider error with Adobe IO Rest Service</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/getting-db-provider-error-with-adobe-io-rest-service/m-p/431226#M540</link>
      <description>&lt;P&gt;&lt;LI-USER uid="17377904"&gt;&lt;/LI-USER&gt;&amp;nbsp;- could you try state init without custom ow auth. Simply this:&lt;/P&gt;&lt;PRE&gt;let state = await libState.init();&lt;/PRE&gt;&lt;P&gt;Why do you need to pass the custom Openwhisk namespace + auth?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 15:30:05 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/getting-db-provider-error-with-adobe-io-rest-service/m-p/431226#M540</guid>
      <dc:creator>duypnguyen</dc:creator>
      <dc:date>2021-11-12T15:30:05Z</dc:date>
    </item>
    <item>
      <title>Re: Getting DB Provider error with Adobe IO Rest Service</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/getting-db-provider-error-with-adobe-io-rest-service/m-p/431449#M541</link>
      <description>&lt;P&gt;Hi Duynguyen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using the ow auth to differentiate the service between dev, stage and Production environments. If we are not using the auth syntax the different environment libstate data is getting merged. This solution is not working for us.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please provide solution asap.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 02:19:42 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/getting-db-provider-error-with-adobe-io-rest-service/m-p/431449#M541</guid>
      <dc:creator>SahithiMalyala</dc:creator>
      <dc:date>2021-11-16T02:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Getting DB Provider error with Adobe IO Rest Service</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/getting-db-provider-error-with-adobe-io-rest-service/m-p/431488#M542</link>
      <description>&lt;P&gt;&lt;LI-USER uid="17377904"&gt;&lt;/LI-USER&gt;&amp;nbsp;- I got your requirement, but why isn't this solution working?&lt;/P&gt;&lt;P&gt;In your App Builder project, there are different workspaces for prod, stage, dev, etc. Each comes with its own Runtime namespace.&lt;/P&gt;&lt;P&gt;If you deploy your app to a namespace, let's say dev, libState.init (without any param) will automatically pick the dev namespace. And the libState data is specific to that dev namespace only.&lt;/P&gt;&lt;P&gt;If you deploy to stage later, you will have fresh data of stage. And the same for prod.&lt;/P&gt;&lt;P&gt;In summary, they don't share any data, because we guarantee tenant isolation between namespaces.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 09:35:35 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/getting-db-provider-error-with-adobe-io-rest-service/m-p/431488#M542</guid>
      <dc:creator>duypnguyen</dc:creator>
      <dc:date>2021-11-16T09:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: Getting DB Provider error with Adobe IO Rest Service</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/getting-db-provider-error-with-adobe-io-rest-service/m-p/431917#M544</link>
      <description>&lt;P&gt;Am working with&amp;nbsp;&lt;LI-USER uid="17377904"&gt;&lt;/LI-USER&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;The issue is very much specific to this workspace. The same set of code is deployed in Dev, SIT, PT, Pre-Prod it works in all environments and breaks only in production.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We tried with clean init() method and that did not work too. It has been burning us from few days now and has been in a pretty red flag for us&lt;/P&gt;</description>
      <pubDate>Fri, 19 Nov 2021 03:13:36 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/getting-db-provider-error-with-adobe-io-rest-service/m-p/431917#M544</guid>
      <dc:creator>suryapramodhd73</dc:creator>
      <dc:date>2021-11-19T03:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Getting DB Provider error with Adobe IO Rest Service</title>
      <link>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/getting-db-provider-error-with-adobe-io-rest-service/m-p/431937#M546</link>
      <description>&lt;P&gt;&lt;LI-USER uid="15647477"&gt;&lt;/LI-USER&gt;&amp;nbsp;- to make sure I understand the problem correctly, please confirm:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;the error you described in the original question only occurred in prod namespace, both when you used `stateLib.init()` and `stateLib.init({ ow: { namespace, auth } })`.&lt;/LI&gt;&lt;LI&gt;there was no error in other namespaces, both when you used&amp;nbsp;`stateLib.init()` and `stateLib.init({ ow: { namespace, auth } })`.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 19 Nov 2021 09:26:14 GMT</pubDate>
      <guid>https://experienceleaguecommunities.adobe.com/t5/project-firefly-questions/getting-db-provider-error-with-adobe-io-rest-service/m-p/431937#M546</guid>
      <dc:creator>duypnguyen</dc:creator>
      <dc:date>2021-11-19T09:26:14Z</dc:date>
    </item>
  </channel>
</rss>

