Closed imshubh17 closed 4 years ago
@imshubh17 Thanks for opening the issue, looks like assistant_id
provided by you is not a valid one. Did you pass in id
as mentioned in the code snippet you provided?
I used assistant id which I got from assistant chatbot, here in code I didn't mentioned. I was trying to integrate chatbot with flask application but I didn't get proper guidance.
which assistant
chatbot did you get the assistant id
from?
I used these details from assistant chatbot and at the place of assistant id I used skill id which is showing in this image.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Remember, an issue is not the place to ask questions. If you have issues with the APIs or have a question about the Watson services, see Stack Overflow.
Before you open an issue, please check if a similar issue already exists or has been closed before.
Check service status
If the service status is OK, continue with a bug report.
Overview What is the issue? Be concise and clear. ibm_cloud_sdk_core.api_exception.ApiException: Error: Resource not found, Code: 404 , X-global-transaction-id: 137791589e573f5d6e0c0cc581cdad21
Expected behavior What did you expect to happen?
Actual behavior What actually happened?
How to reproduce Help us to reproduce what you experienced. Include your code snippets (without credentials)
Screenshots If applicable, add screenshots to help explain your problem.
SDK Version Please provide the SDK version here. v2
Additional information:
Python
are you using? 3.7 Additional context Add any other details about the problem. from ibm_watson import AssistantV2 from ibm_cloud_sdk_core.authenticators import IAMAuthenticator from ibm_cloud_sdk_core.authenticators import BasicAuthenticator authenticator = IAMAuthenticator('api-key')assistant = AssistantV2( version='2020-04-04', authenticator = authenticator )
assistant.set_service_url('url')
response = assistant.create_session(assistant_id='id').get_result()
print(response)