Originally created by @Taluen79 on GitHub (Aug 15, 2024).
I was trying to add a new tool. When you click on the "+" sign to add a new tool, you'll get the default tool for checking time and whether. I you try to save this tool, you get an error once you have read the warning about using untrusted tools. The log for this looks like this:
An error occurred: 'utf-8' codec can't decode byte 0xb0 in position 3469: invalid start byte
No requirements found in frontmatter.
Error loading module: test_tools_2
(unicode error) 'utf-8' codec can't decode byte 0xb0 in position 0: invalid start byte (test_tools_2.py, line 98)
DEBUG [main] Commit session after request
INFO: 192.168.1.23:59153 - "POST /api/v1/tools/create HTTP/1.1" 400 Bad Request
This issue is seems to be related to the line 98 in the python code for the default tool that looks like this:
return f"Weather in {city}: {temperature}°C"
If you remove the degree symbol and make it into:
return f"Weather in {city}: {temperature}C"
It will work save without errors.
Not very serious, but still annoying.
Originally created by @Taluen79 on GitHub (Aug 15, 2024).
I was trying to add a new tool. When you click on the "+" sign to add a new tool, you'll get the default tool for checking time and whether. I you try to save this tool, you get an error once you have read the warning about using untrusted tools. The log for this looks like this:
An error occurred: 'utf-8' codec can't decode byte 0xb0 in position 3469: invalid start byte
No requirements found in frontmatter.
Error loading module: test_tools_2
(unicode error) 'utf-8' codec can't decode byte 0xb0 in position 0: invalid start byte (test_tools_2.py, line 98)
DEBUG [main] Commit session after request
INFO: 192.168.1.23:59153 - "POST /api/v1/tools/create HTTP/1.1" 400 Bad Request
This issue is seems to be related to the line 98 in the python code for the default tool that looks like this:
return f"Weather in {city}: {temperature}°C"
If you remove the degree symbol and make it into:
return f"Weather in {city}: {temperature}C"
It will work save without errors.
Not very serious, but still annoying.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @Taluen79 on GitHub (Aug 15, 2024).
I was trying to add a new tool. When you click on the "+" sign to add a new tool, you'll get the default tool for checking time and whether. I you try to save this tool, you get an error once you have read the warning about using untrusted tools. The log for this looks like this:
An error occurred: 'utf-8' codec can't decode byte 0xb0 in position 3469: invalid start byte
No requirements found in frontmatter.
Error loading module: test_tools_2
(unicode error) 'utf-8' codec can't decode byte 0xb0 in position 0: invalid start byte (test_tools_2.py, line 98)
DEBUG [main] Commit session after request
INFO: 192.168.1.23:59153 - "POST /api/v1/tools/create HTTP/1.1" 400 Bad Request
This issue is seems to be related to the line 98 in the python code for the default tool that looks like this:
return f"Weather in {city}: {temperature}°C"
If you remove the degree symbol and make it into:
return f"Weather in {city}: {temperature}C"
It will work save without errors.
Not very serious, but still annoying.