# 为什么我的调试器没有显示任何内容？

**URL:** https://meta.discourse.org/t/why-is-my-debugger-not-showing-anything/317590
**Category:** Bug
**Tags:** ai, ai-bot, fixed
**Created:** [2024年七月5日 17:39 UTC](https://meta.discourse.org/t/why-is-my-debugger-not-showing-anything/317590 "2024-07-05T17:39:15Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MarcP](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/marcp/32/160184_2.png) [@MarcP](https://meta.discourse.org/u/MarcP)
#### Post date: [2024年七月5日 17:39 UTC](https://meta.discourse.org/t/why-is-my-debugger-not-showing-anything/317590/1 "2024-07-05T17:39:15Z")

</div>

很棒的功能。

调试器对我来说什么也没显示，并且 `/logs/` 页面报告；

```plaintext
DiscourseAi::Completions::Endpoints::OpenAi: status: 400 - body: { "error": { "message": "Invalid schema for function 'scraper': False is not of type 'array'.", "type": "invalid_reques
7:28 pm
Job exception: { "error": { "message": "Invalid schema for function 'scraper': False is not of type 'array'.", "type": "invalid_request_error", "param": "tools[6].function.paramete
7:28 pm

```

```json
Job exception: {
  "error": {
    "message": "Invalid schema for function 'scraper': False is not of type 'array'.",
    "type": "invalid_request_error",
    "param": "tools[6].function.parameters",
    "code": "invalid_function_parameters"
  }
}

```

我有一个更高级的代码来执行代理浏览，但我将其简化为与示例浏览工具非常相似的代码：

```js
let url;
function invoke(params) {
  url = params.url;
  const apiKey = "KEY";
  const requestUrl = `https://myproxy.com/?api_key=${apiKey}&url=${url}`;

  result = http.get(requestUrl);
  return llm.truncate(result.body, 15000);
}

function details() {
  return "Scrapes a website";
}

```

---

<div class="post-metadata">

### Author: ![Roman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roman/32/157504_2.png) [@Roman](https://meta.discourse.org/u/Roman)
#### Post date: [2024年七月16日 17:25 UTC](https://meta.discourse.org/t/why-is-my-debugger-not-showing-anything/317590/2 "2024-07-16T17:25:47Z")

</div>

`enum` 错误应该已根据我上次的提交修复：

> <https://github.com/discourse/discourse-ai/pull/718>
>
> Enums didn't work as expected because we the dialect couldn't translate them cor…rectly. It doesn't understand what "enum\_values" is.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [2024年七月22日 14:20 UTC](https://meta.discourse.org/t/why-is-my-debugger-not-showing-anything/317590/3 "2024-07-22T14:20:03Z")

</div>


