semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

Klarna skill in chat app returns error

Open Woland2k opened this issue 2 years ago • 1 comments

Describe the bug I activate Klarna plugin in chat and trying to utilize it, however I receive the error:

Unable to generate bot response. Details: Error: 400: => Runtime error: Function ChatSkill.AcquireExternalInformation execution failed. Microsoft.SemanticKernel.KernelException: Function invoke error: Error occurred while running plan step:

To Reproduce Steps to reproduce the behavior:

  1. Start chat application
  2. Activate Klarna plugin
  3. Type the following message into the chat "i want to buy a laptop and my budget is 200 dollars"
  4. See error

Expected behavior Should return comparison from Klarna.

Screenshots 2023-05-09_23-22-09

Woland2k avatar May 10 '23 06:05 Woland2k

It looks like Kernel generates incorrect URL for Klarna request.

Here is a page that is getting requested: https://www.klarna.com/us/public/openai/v0/products/?q=headphones&size=10&min_price=0&max_price=150

The correct URL should be: https://www.klarna.com/us/shopping/public/openai/v0/products/?q=headphones&size=10&min_price=0&max_price=150

Woland2k avatar May 10 '23 17:05 Woland2k