supabase/postgres-meta

Get 404 if use colume.ts

fuergaosi233 opened this issue ยท 4 comments

Bug report

Describe the bug

If i use colume.ts , all of router will register failed and no error.

To Reproduce

  1. start server
  2. request localhost:1337/schemas
  3. get 404 and see log

image

image

4. comment this code block

image

  1. it's fine

System information

  • OS: Linux
  • Browser (if applies) Chrome
  • Version of Node.js: Node.js v16.16.0

I found the cause of the problem and it was caused by an upgrade to fastify
image
@soedirgo

And I think PostgresMeta needs e2e testing

Yeah, I mistakenly thought Fastify v4 has no breaking changes from the announcement blog post.

And I think PostgresMeta needs e2e testing

Yes, definitely. There has been many cases where typecheck failures went unnoticed until actually running queries against the server (the tests only cover the lib). Unfortunately I'm a bit swamped right now - instead I'll just add a typecheck test in CI, which would've caught most of these cases. I'll convert the lib tests to server tests at some point.

๐ŸŽ‰ This issue has been resolved in version 0.50.3 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€