Code Monkey home page Code Monkey logo

Comments (6)

lee-zhg avatar lee-zhg commented on June 13, 2024

dsn=params.__bx_creds[Object.keys(params.__bx_creds)[0]].dsn;

"dsn" returned by the above code is "undefined"

from slack-chatbot-database-watson.

data-henrik avatar data-henrik commented on June 13, 2024

This is my result. I assume the error you are seeing is related to #10. It could be that provisioning your database service was not successful. Hence you have trouble accessing the Db2 management console and see the error caused by missing credentials.

My recommendation is to recreate the Db2 service, i.e., delete it, then create it again.

$ sh setup.sh foobar "dashdb-for-transactions"
ok: created namespace slackbot
If you are using any deprecated action runtimes, update them to continue receiving updates and support. Deprecated runtimes might be disabled in future.
For more information see <https://ibm.biz/Functions-Runtimes>
ok: whisk namespace set to slackbot
ok: created package slackdemo
ok: created action slackdemo/db2Setup
Credentials 'slackbotkey' from 'dashdb-for-transactions' service instance 'eventDB' bound to 'slackdemo/db2Setup'.
{
    "result": []
}
{
    "result": []
}
ok: created action slackdemo/dispatch
Credentials 'slackbotkey' from 'dashdb-for-transactions' service instance 'eventDB' bound to 'slackdemo/dispatch'.

from slack-chatbot-database-watson.

data-henrik avatar data-henrik commented on June 13, 2024

I am closing this issue. Please reopen if my recommendation does not solve the issue.

from slack-chatbot-database-watson.

lee-zhg avatar lee-zhg commented on June 13, 2024

@data-henrik what data center did you use to provision the DB2 instance when testing? Thank you

from slack-chatbot-database-watson.

data-henrik avatar data-henrik commented on June 13, 2024

@lee-zhg let's communicate via #10

from slack-chatbot-database-watson.

lee-zhg avatar lee-zhg commented on June 13, 2024

@data-henrik, This morning I run everything again in IBM Cloud Shell as you did not encounter the same issue. And, I got the same result as I did on my local machine yesterday.

Could you please try it in Cloud Shell? It can ensure we run the process in the same environment. I feel we may have a diff CLI env as we see diff result. I am interesting to see if it works for you in Cloud Shell.

from slack-chatbot-database-watson.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.