8000 TypeError: Cannot read properties of undefined (reading 'lookupOptions') · Issue #1383 · teableio/teable · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

TypeError: Cannot read properties of undefined (reading 'lookupOptions') #1383

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mmospanenko opened this issue Mar 17, 2025 · 0 comments
Open

Comments

@mmospanenko
Copy link

Describe the bug
500 using batch post

To Reproduce
Steps to reproduce the behavior:

  1. Create txt field with unique
  2. see that it doesn't work
  3. recreate field (rename prev one because we can't delete it - why?)
  4. try to create records via api

Expected behavior
Created field TXT with Qnique. Then I found that it doesn't work (!) and decided to resave field settings, but got error that there are any restriction config on this field. And I didn't have any options, only delete and create new on. With new field restrictions work.
BUT after calling create api, it return 500 with
TypeError: Cannot read properties of undefined (reading 'lookupOptions')

Screenshots

Image

** Client (please complete the following information):**
Ubuntu ARM

Platform (Please tell us which deployment version you are using)
Docker Compose

Additional context

Mar 17 08:44:02 int2-16gb-arm docker[1525869]: teable-1   | {"level":50,"time":1742193842530,"pid":7,"hostname":"da83e32de78f","name":"teable","req":{"id":"e73b219b43c8f949e188768a9c0de87c","method":"POST","url":"/api/table/tbltnXVhJlmlNKdck93/record","query":{},"params":{"0":"api/table/tbltnXVhJlmlNKdck93/record"},"remoteAddress":"::ffff:172.20.0.7","remotePort":54522},"context":"GlobalExceptionFilter","url":"/api/table/tbltnXVhJlmlNKdck93/record","message":"Cannot read properties of undefined (reading 'lookupOptions')","spanId":"2acc125c007299f6","traceId":"e73b219b43c8f949e188768a9c0de87c","msg":"TypeError: Cannot read properties of undefined (reading 'lookupOptions')\n    at ReferenceService.getAffectedRecordItems (/app/apps/nestjs-backend/dist/index.js:11776:31)\n    at ReferenceService.calculate (/app/apps/nestjs-backend/dist/index.js:11252:51)\n    at async ReferenceService.calculateRecordData (/app/apps/nestjs-backend/dist/index.js:11236:9)\n    at async ReferenceService.calculateOpsMap (/app/apps/nestjs-backend/dist/index.js:11115:9)\n    at async RecordCalculateService.calculate (/app/apps/nestjs-backend/dist/index.js:26159:9)\n    at async RecordCalculateService.calculateUpdatedRecord (/app/apps/nestjs-backend/dist/index.js:26191:9)\n    at async RecordCalculateService.createRecords (/app/apps/nestjs-backend/dist/index.js:26333:9)"}
Mar 17 08:44:02 int2-16gb-arm docker[1525869]: teable-1   | {"level":30,"time":1742193842532,"pid":7,"hostname":"da83e32de78f","name":"teable","req":{"id":"e73b219b43c8f949e188768a9c0de87c","method":"POST","url":"/api/table/tbltnXVhJlmlNKdck93/record","query":{},"params":{"0":"api/table/tbltnXVhJlmlNKdck93/record"},"remoteAddress":"::ffff:172.20.0.7","remotePort":54522},"res":{"statusCode":500},"err":{"type":"Error","message":"failed with status code 500","stack":"Error: failed with status code 500\n    at onResFinished (/app/node_modules/.pnpm/pino-http@9.0.0/node_modules/pino-http/logger.js:114:39)\n    at ServerResponse.onResponseComplete (/app/node_modules/.pnpm/pino-http@9.0.0/node_modules/pino-http/logger.js:177:14)\n    at /app/node_modules/.pnpm/@opentelemetry+context-async-hooks@1.27.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/context-async-hooks/build/src/AbstractAsyncHooksContextManager.js:50:55\n    at AsyncLocalStorage.run (node:async_hooks:335:14)\n    at AsyncLocalStorageContextManager.with (/app/node_modules/.pnpm/@opentelemetry+context-async-hooks@1.27.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/context-async-hooks/build/src/AsyncLocalStorageContextManager.js:33:40)\n    at ServerResponse.contextWrapper (/app/node_modules/.pnpm/@opentelemetry+context-async-hooks@1.27.0_@opentelemetry+api@1.9.0/node_modules/@opentelemetry/context-async-hooks/build/src/AbstractAsyncHooksContextManager.js:50:32)\n    at ServerResponse.emit (node:events:526:35)\n    at ServerResponse.emit (node:domain:488:12)\n    at onFinish (node:_http_outgoing:1005:10)\n    at callback (node:internal/streams/writable:608:21)"},"responseTime":1001,"spanId":"2acc125c007299f6","traceId":"e73b219b43c8f949e188768a9c0de87c","msg":"request errored"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0