Traceback (most recent call last):
File "C:\Users\\AppData\Local\Programs\Python\Python311\Lib\site-packages\jishaku\features\python.py", line 192, in jsk_python
async for send, result in AsyncSender(executor): # type: ignore
File "C:\Users\\AppData\Local\Programs\Python\Python311\Lib\site-packages\jishaku\functools.py", line 120, in _internal
value = await base.asend(self.send_value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\\AppData\Local\Programs\Python\Python311\Lib\site-packages\jishaku\repl\compilation.py", line 210, in traverse
async for send, result in AsyncSender(func_g(*self.args)): # type: ignore
File "C:\Users\\AppData\Local\Programs\Python\Python311\Lib\site-packages\jishaku\functools.py", line 120, in _internal
value = await base.asend(self.send_value)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<repl>", line 1, in _repl_coroutine
await ctx.guild.fetch_automod_rules()
File "C:\Users\\AppData\Local\Programs\Python\Python311\Lib\site-packages\discord\guild.py", line 4210, in fetch_automod_rules
data = await self._state.http.get_auto_moderation_rules(self.id)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\\AppData\Local\Programs\Python\Python311\Lib\site-packages\discord\http.py", line 743, in request
raise DiscordServerError(response, data)
discord.errors.DiscordServerError: 501 Not Implemented (error code: 0): http-proxy: Failed to parse API path from client request```
#Unable to fetch automod rules in discord.py for Twilight HTTP Proxy
1 messages · Page 1 of 1 (latest)
my base path is http://localhost:3000/api/v10
According to the API wrapper code
discord.py sends request to http://localhost:3000/guilds/{guild_id}/auto-moderation/rules
await bot.http.request(discord.http.Route('GET', '/guilds/{guild_id}/auto-moderation/rules', guild_id=guild_id))```
if I do this it says unable to parse API path
are the paths pre defined in the proxy?
2024-06-11T02:37:13.609833Z ERROR twilight_http_proxy: Failed to parse path for Get /: PathParseError { kind: NoMatch, source: None }
2024-06-11T02:54:07.565588Z ERROR twilight_http_proxy: Failed to parse path for Get /: PathParseError { kind: NoMatch, source: None }
2024-06-11T05:15:53.322556Z ERROR twilight_http_proxy: Failed to parse path for Get /: PathParseError { kind: NoMatch, source: None }
2024-06-11T06:57:36.999984Z ERROR twilight_http_proxy: Failed to parse path for Get /: PathParseError { kind: NoMatch, source: None }
2024-06-11T06:57:50.968322Z ERROR twilight_http_proxy: Failed to parse path for Get /favicon.ico: PathParseError { kind: NoMatch, source: None }
2024-06-11T09:24:15.734070Z ERROR twilight_http_proxy: Failed to parse path for Get /: PathParseError { kind: NoMatch, source: None }
2024-06-11T09:25:57.076765Z ERROR twilight_http_proxy: Failed to parse path for Get /: PathParseError { kind: NoMatch, source: None }
2024-06-11T10:44:19.035517Z ERROR twilight_http_proxy: Failed to parse path for Get /: PathParseError { kind: NoMatch, source: None }
2024-06-11T10:44:19.533120Z ERROR twilight_http_proxy: Failed to parse path for Get /: PathParseError { kind: NoMatch, source: None }
2024-06-11T10:44:19.945253Z ERROR twilight_http_proxy: Failed to parse path for Get /favicon.ico: PathParseError { kind: NoMatch, source: None }
2024-06-11T10:44:20.453597Z ERROR twilight_http_proxy: Failed to parse path for Get /robots.txt: PathParseError { kind: NoMatch, source: None }
2024-06-11T12:34:01.361786Z ERROR twilight_http_proxy: Failed to parse path for Get /guilds/111704769659/auto-moderation/rules: PathParseError { kind: NoMatch, source: None }
2024-06-11T12:48:39.157416Z ERROR twilight_http_proxy: Failed to parse path for Get /guilds/11170476659589/auto-moderation/rules: PathParseError { kind: NoMatch, source: None }```
docker logs
.
.
@jolly frost || sorry if i disturbed you ||
Yeah I know what the issue is, I just need to fix it.
I will look into it this weekend
This should be fixed now if you get the newest version of the dockerfile/how you do it
okay
This is one is the latest https://github.com/twilight-rs/http-proxy/pkgs/container/http-proxy/230506688?tag=latest ?
tried both metics and latest, none of them work well
CONTAINER ID: ...
IMAGE: ghcr.io/twilight-rs/http-proxy:metrics
COMMAND: "./twilight-http-pro…"
CREATED: 12 minutes ago
STATUS: Up 12 minutes
PORTS: 0.0.0.0:3000->80/tcp
NAMES: twilight-http-proxy```
2024-06-16T13:25:14.935734Z INFO twilight_http_proxy: Listening on http://0.0.0.0:80
2024-06-16T13:25:51.262098Z ERROR twilight_http_proxy: Failed to parse path for Get /guilds/11170.../auto-moderation/rules: PathParseError { kind: NoMatch, source: None }
2024-06-16T13:37:17.389550Z ERROR twilight_http_proxy: Failed to parse path for Get /guilds/11170.../auto-moderation/rules: PathParseError { kind: NoMatch, source: None }```
Oh I can see the issue let me fix that.
@hushed moat Try again now.
okay
which one is good tho? latest or metrics?
latest is fine, but it should not matter.
okay