Skip to content
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

The attributes does not match the model.You need to correctly specify the required fields: url, method, params, headers, body #2282

Closed
KR1470R opened this issue Sep 11, 2023 · 8 comments

Comments

@KR1470R
Copy link

KR1470R commented Sep 11, 2023

I'm trying to add my custom API for auto-labeling feature.
In the window "Create autolabeling" i'm getting the error:
"The attributes does not match the model.You need to correctly specify the required fields: url, method, params, headers, body".
Because i cannot add neither params nor headers nor body parameters to the settings due "No data available" popup message.
image
How can i add the data and fix the problem?

Running doccano docker container.

@github-actions
Copy link

Would you write your environment? Thank you!

@zhhh-j
Copy link

zhhh-j commented Sep 12, 2023

I encounter the same problem, have you solved it?

@KR1470R
Copy link
Author

KR1470R commented Sep 12, 2023

@jaybeck nope, the only idea i have is to rollback to old commits.

@KR1470R
Copy link
Author

KR1470R commented Sep 12, 2023

unfortunately it didn't help.

@zhhh-j
Copy link

zhhh-j commented Sep 12, 2023

what about pip install vesion==1.8.3?

@KR1470R
Copy link
Author

KR1470R commented Sep 12, 2023

@jaybeck i guess it could solve a problem, but there's another problem i stumbled:
AttributeError: type object 'CustomRESTRequestModel' has no attribute 'model_json_schema'

that what i did:

pip install doccano==1.8.3
pip install pydantic==1.10.10

@zhhh-j
Copy link

zhhh-j commented Sep 12, 2023

Yes. The definition of 'model_json_schema' is missing here, I will try another tool, Label Studio. _

@KR1470R
Copy link
Author

KR1470R commented Sep 12, 2023

@jaybeck i fixed the problem by installing auto-labeling-pipeline==0.1.21. Now doccano works and i'm able to add params, headers and body props.

@KR1470R KR1470R closed this as completed Sep 12, 2023
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

2 participants