Comments (9)
Can you please share a minimal reproducible example of the issue? something that I can run and see the problem right away?
from jina.
The reason these exceptions are not easily seen is because all these collectiing of schemas from Executors is done asynchronously and these exceptions are not so well reported.
from jina.
I think this line is throwing the exception in helper._create_aux_model_doc_list_to_list
:
create_model(
model.__name__,
__base__=model,
__validators__=model.__validators__,
**fields,
)
Somehow I can't see proper exceptions or stack traces in my Jina flows...
from jina.
Minimal Reproducible Example showcasing the underlying problem:
from docarray import DocList, BaseDoc
from jina.serve.runtimes.helper import _create_aux_model_doc_list_to_list
class MyTextDoc(BaseDoc):
text: str
class QuoteFile(BaseDoc):
texts: DocList[MyTextDoc]
class QuoteFileType(BaseDoc):
"""
QuoteFileType class.
"""
id: str = None # same as name, compatibility reasons for a generic, shared `id` field
name: str = None
total_count: int = None
docs: DocList[QuoteFile] = None
chunks: DocList[QuoteFile] = None
new_model = _create_aux_model_doc_list_to_list(QuoteFileType)
new_model.schema()
Somehow the new_model
has a problem when calling .schema()
, there is where the KeyError is raised.
from jina.
I have a candidate PR to fix #6141
I will try to soon add tests, but u can test in advance if possible
from jina.
hmm, didn't work quite well; we may need to bring cached_models
from the topology graph – with a local cached_models
list, it still gives the same error
from jina.
hmm, didn't work quite well; we may need to bring
cached_models
from the topology graph – with a localcached_models
list, it still gives the same error
can you please add the example that is giving the error. Otherwise is very hard to debug.
from jina.
I have updated the PR, can you try again and provide a minimal reproducible example for us to make sure we add relevant testing scenarios?
from jina.
@jina-ai/product This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 14 days
from jina.
Related Issues (20)
- opentelemetry-exporter-prometheus version conflict
- Release Note
- Will the Pydantic dependency be upgraded in the future?Currently, due to version issues, some third-party packages are incompatible. HOT 10
- `StableLM` example from the homepage doesn't work properly. HOT 14
- Release Notes (3.23.2)
- Error on joining branches: Flow is aborted due to ['gateway'] can not be started. HOT 1
- Cannot serialize subfield objects properly HOT 6
- Release Notes 3.23.3
- Fix code scanning alert - Information exposure through an exception HOT 1
- Release Notes 3.23.4
- Release Note 3.23.5
- Release Note 3.24.0
- float being checked as a list HOT 3
- Release Notes 3.24.1
- How to solve this error? HOT 9
- Release Notes 3.25.0
- Release Note 3.25.1
- After killing the process, it becomes a zombie process HOT 7
- Engine consumes a large amount of Memory. What methods can be used to optimize memory usage? HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jina.