Coder Social home page Coder Social logo

demo-ui's Introduction

demo-ui's People

Contributors

alexaryn avatar eric-anderson avatar bohou-aryn avatar baitsguy avatar pparmar30 avatar austintlee avatar henryl27 avatar

Stargazers

Mohiuddin Khan Inamdar avatar

Watchers

Mehul A. Shah avatar Ben Sowell avatar  avatar  avatar  avatar  avatar

Forkers

yungtecace

demo-ui's Issues

UI Exception in Container: Cannot read properties of undefined (reading 'endsWith')

This is reproducible for me in the 'docker compose' setup on branch eric-sort_improvements today.

The query is 'hi'. Stack trace is:

Uncaught TypeError: Cannot read properties of undefined (reading 'endsWith')
at SearchResultDocument.isPdf (Types.tsx:19:1)
at icon (Doclist.tsx:21:1)
at DocumentItem (Doclist.tsx:41:1)
at renderWithHooks (react-dom.development.js:16305:1)
at mountIndeterminateComponent (react-dom.development.js:20074:1)
at beginWork (react-dom.development.js:21587:1)
at HTMLUnknownElement.callCallback (react-dom.development.js:4164:1)
at Object.invokeGuardedCallbackDev (react-dom.development.js:4213:1)
at invokeGuardedCallback (react-dom.development.js:4277:1)
at beginWork$1 (react-dom.development.js:27451:1)

The response data has 20 hits. Here's hit #0:

_id: "7cbc23da-8328-11ee-8bbc-0242ac130005"
_index: "demoindex0"
_score: 0.889
_source: bbox: (4) [0.410391905357682, 0.5585842674754545, 0.4764760688893655, 0.5711600200209092]
doc_id: "7cbc23da-8328-11ee-8bbc-0242ac130005"
properties:
element_id: "71e54243ba447407a33473a8bc3c79f4"
filename: ""
filetype: "application/pdf"
links: []
page_number: 3
title: "\n A Minute with Nsort on a 32P NEC Windows Itanium2 Server"
text_representation: "Nsort [8]"
type: "Title"

Figure out a proper fix for the Worker was terminated error

Right now we work around it by catching the exception and ignoring it by patching pdf.worker.js.

This is obviously the wrong fix, but it works.

Failure occurs ~50% of the time on Eric's Ubuntu laptop and ~20% of the time with Chromium. It's clearly some kind of race condition.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.