TypeError: Cannot read properties of undefined (reading 'lookupOptions') · Issue #1383 · teableio/teable · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
recreate field (rename prev one because we can't delete it - why?)
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
** 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"}
The text was updated successfully, but these errors were encountered:
Describe the bug
500 using batch post
To Reproduce
Steps to reproduce the behavior:
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
** Client (please complete the following information):**
Ubuntu ARM
Platform (Please tell us which deployment version you are using)
Docker Compose
Additional context
The text was updated successfully, but these errors were encountered: