GitHub
02/05/2025, 11:23 AMUse http_method instead warning despite not declaring rest_method
Issue created by ReubenFrankel
Singer SDK Version
0.44.2
Is this a regression?
• tap-f1 does not declare rest_method anywhere (assumes default of GET) and yet there are loads of `` Warning: Use http_method instead. `` logs from Pytest: https://github.com/ReubenFrankel/tap-f1/actions/runs/13155539363/job/36711708911?pr=104#step720
This looks to be the case if http_method is not declared (i.e. None) and the SDK resolves the default GET via internal call to `rest_method`:
sdk/singer_sdk/streams/rest.py
Lines 176 to 180 in</meltano/sdk/commit/1d00bfc20f7ffcb6ab87384a6cc8621783dd2b6a|1d00bfc>
| @property |
| --------------------------------------------------------- |
| def http_method(self) -> str: |
| """HTTP method to use for requests. Defaults to "GET".""" |
| return self._http_method or self.rest_method |
| |
sdk/singer_sdk/streams/rest.py
Lines 147 to 159 in</meltano/sdk/commit/1d00bfc20f7ffcb6ab87384a6cc8621783dd2b6a|1d00bfc>
| @property |
| ------------------------------------------------------------ |
| @deprecated( |
| "Use http_method instead.", |
| category=SingerSDKDeprecationWarning, |
| ) |
| def rest_method(self) -> str: |
| """HTTP method to use for requests. Defaults to "GET". |
| |
| .. deprecated:: 0.43.0 |
| Override meth~singer_sdk.RESTStream.http_method instead. |
| """ |
| return self._http_method or "GET" |
| |
Link to Slack/Linen
No response
meltano/sdkGitHub
02/05/2025, 3:58 PMUse http_method instead warning despite not declaring rest_method
Issue closed as completed by edgarrmondragon
meltano/sdk