Skip to content

🐛 [BUG] - can't create new or delete existing api token #2229

@draylegend

Description

@draylegend

Reproduction steps

1. Open api tokens.
2. Try to create new token or delete existing one.

Screenshots

Image

Logs

{"level":30,"time":1756330292354,"pid":6,"hostname":"5324523452345","module":"app","msg":"db migrate start"}
{"level":30,"time":1756330292360,"pid":6,"hostname":"5324523452345","module":"@undb/backend","version":"1.0.0-143","msg":"App is running at localhost:3721"}
{
  severity_local: "NOTICE",
  severity: "NOTICE",
  code: "42622",
  message: "identifier \"undb_attachment_mapping_attachment_id_table_id_record_id_field_id_pk\" will be truncated to \"undb_attachment_mapping_attachment_id_table_id_record_id_field_\"",
  file: "scansup.c",
  line: "99",
  routine: "truncate_identifier",
}
{
  severity_local: "NOTICE",
  severity: "NOTICE",
  code: "42622",
  message: "identifier \"undb_dashboard_table_id_mapping_dashboard_id_undb_dashboard_id_fk\" will be truncated to \"undb_dashboard_table_id_mapping_dashboard_id_undb_dashboard_id_\"",
  file: "scansup.c",
  line: "99",
  routine: "truncate_identifier",
}
{"level":30,"time":1756330293059,"pid":6,"hostname":"5324523452345","module":"app","msg":"db migrate done"}
{"level":50,"time":1756330293403,"pid":6,"hostname":"5324523452345","module":"@undb/backend","err":{"type":"Error","message":"Failed to unwrap Option (found None)","stack":"Error: Failed to unwrap Option (found None)\n    at expect (/usr/src/app/node_modules/oxide.ts/dist/option.js:121:23)\n    at <anonymous> (/usr/src/app/packages/space/src/space.service.ts:93:46)\n    at processTicksAndRejections (native:7:39)"},"msg":"Failed to unwrap Option (found None)"}
{"level":50,"time":1756330294446,"pid":6,"hostname":"5324523452345","module":"@undb/backend","path":"/serviceworker.js","msg":"Not Found"}
{"level":30,"time":1756330295998,"pid":6,"hostname":"5324523452345","module":"Auth","method":"GET","query":{},"path":"/api/me","requestId":"23590073-7a2a-4e37-8b88-523452345","msg":"openapi request"}
{"level":50,"time":1756330297844,"pid":6,"hostname":"5324523452345","module":"@undb/backend","path":"/serviceworker.js","msg":"Not Found"}
{"level":30,"time":1756330303420,"pid":6,"hostname":"5324523452345","module":"Auth","method":"POST","query":{},"path":"/api/login","requestId":"dac732b9-e4ba-4e58-9bd5-53245345","msg":"openapi request"}
{"level":30,"time":1756330303452,"pid":6,"hostname":"5324523452345","module":"Auth","method":"GET","query":{},"path":"/api/me","requestId":"b068d914-0a64-41f6-a1a6-43153245","msg":"openapi request"}
{"level":50,"time":1756330324418,"pid":6,"hostname":"5324523452345","module":"@undb/backend","path":"/serviceworker.js","msg":"Not Found"}
{"level":30,"time":1756330324793,"pid":6,"hostname":"5324523452345","module":"Auth","method":"POST","query":{},"path":"/api/signup","requestId":"c09b0aea-abbe-4ce0-9d90-431234","msg":"openapi request"}
{"level":30,"time":1756330324844,"pid":6,"hostname":"5324523452345","module":"Auth","method":"GET","query":{},"path":"/api/me","requestId":"7a1016b1-1eb0-46a4-9ee1-12344321","msg":"openapi request"}
{"level":30,"time":1756330333467,"pid":6,"hostname":"5324523452345","module":"@undb/trpc","requestId":"557eea7f-eb31-499a-abd3-ebe26ce853b5","responseTime":22.687110999999277,"type":"mutation","path":"space.update","msg":"trpc.mutation: space.update"}
{"level":30,"time":1756330346533,"pid":6,"hostname":"5324523452345","module":"@undb/trpc","requestId":"c9fd9151-45aa-46da-bc68-7345665","responseTime":3.157188999997743,"type":"query","path":"apiToken.list","msg":"trpc.query: apiToken.list"}
{"level":30,"time":1756330350499,"pid":6,"hostname":"5324523452345","module":"@undb/trpc","requestId":"e187727f-f5ef-4e90-a738-634563456","responseTime":17.989613000005193,"type":"mutation","path":"apiToken.create","msg":"trpc.mutation: apiToken.create"}
{"level":30,"time":1756330350557,"pid":6,"hostname":"5324523452345","module":"@undb/trpc","requestId":"adc28d21-f833-45a5-87a6-634534564","responseTime":4.0768129999996745,"type":"query","path":"apiToken.list","msg":"trpc.query: apiToken.list"}
{"level":30,"time":1756330350617,"pid":6,"hostname":"5324523452345","module":"@undb/trpc","requestId":"3b6fce8f-b843-4c49-8ba9-634563456","responseTime":3.5244519999978365,"type":"query","path":"apiToken.list","msg":"trpc.query: apiToken.list"}
{"level":30,"time":1756330442221,"pid":6,"hostname":"5324523452345","module":"@undb/trpc","requestId":"9db55b63-530c-4957-b27e-634563456","responseTime":4.465025000012247,"type":"query","path":"apiToken.list","msg":"trpc.query: apiToken.list"}
{"level":30,"time":1756330543424,"pid":6,"hostname":"5324523452345","module":"@undb/trpc","requestId":"339bfe01-bc70-452e-b692-6456456","responseTime":4.2551410000014585,"type":"query","path":"apiToken.list","msg":"trpc.query: apiToken.list"}
{"level":50,"time":1756330628775,"pid":6,"hostname":"5324523452345","module":"@undb/backend","path":"/serviceworker.js","msg":"Not Found"}
{"level":50,"time":1756330658772,"pid":6,"hostname":"5324523452345","module":"@undb/backend","path":"/serviceworker.js","msg":"Not Found"}

Browsers

Chrome

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions