tirkarthi commented on issue #47873:
URL: https://github.com/apache/airflow/issues/47873#issuecomment-2745100146
@amoghrajesh I am unable to reproduce it too :( . It depends on the API
server returning 4xx/5xx response for some reason like validation error or
internal server error. The crux of the issue is as below that
`ServerResponseError` cannot be pickled due to keyword arguments whenever there
is a 4xx/5xx response from the API server.
```python
from airflow.sdk.api.client import ServerResponseError
import pickle
pickled = pickle.dumps(ServerResponseError(message="test", request={},
response={}))
pickle.loads(pickled)
```
```
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: ServerResponseError.__init__() missing 2 required keyword-only
arguments: 'request' and 'response'
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]