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

PATCH HTTP request #596

Open
HakkYahud opened this issue Dec 10, 2024 · 1 comment
Open

PATCH HTTP request #596

HakkYahud opened this issue Dec 10, 2024 · 1 comment

Comments

@HakkYahud
Copy link

Hello,
I would like to make a HTTP request by calling the method PATCH to update some data on a object already existent. I've tried to run http.request with PATCH as http method, here is the error I have:

[ACTIONS.update_eventid_custom_field -> run_action] (Attempt 1)

There was an error in the registry when calling action 'integrations.thehive.update_eventid' (500).

RegistryValidationError: Validation error for bound registry action 'core.http_request'. [{'type': 'literal_error', 'loc': ('method', "ValidationInfo(config={'title': 'CoreHttpRequest', 'extra_fields_behavior': 'forbid'}, context=None, data={'url': 'http://192.168.51.130:9000/api/case/~405736'}, field_name='method')"), 'msg': "Input should be 'GET', 'POST', 'PUT' or 'DELETE'", 'input': 'PATCH', 'ctx': {'expected': "'GET', 'POST', 'PUT' or 'DELETE'"}, 'url': 'https://errors.pydantic.dev/2.6/v/literal_error'}]

------------------------------
File: /app/tracecat/registry/actions/models.py
Function: validate_args
Line: 142

Please, can we get an update of tracecat to take into account the HTTP method PATCH.

Regards,
HakkYahud

@daryllimyt
Copy link
Contributor

Happy to accept a PR for this :) - otherwise we can get this in sometime this week

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