Morning everyone! I recently did a bump in the sd...
# troubleshooting
s
Morning everyone! I recently did a bump in the sdk from v0.4.5 to v0.26.0 (thanks to @pat_nadolny 😄 )I am now getting the following error:
ModuleNotFoundError: No module named 'singer'
(issue can be found here) Has anyone ever experienced this before?
cc @sweta_garai this will be linked to your issue. In the future we will be tagging versions of releases so that you can have a stable version
p
@Stéphane Burwash I cant find a link to the issue but at some point the singer dependency was removed from the SDK. From a quick skim it looks like the tap only uses it for logging, I believe now you should have access to a logger using
self.logger
s
@pat_nadolny awesome, thank you!
Issue should be fixed - please let me know if there are any other issues
s
Thanks @Stéphane Burwash. While handling this error, I am back to square 1 'results' error. I checked all the permissions for my private app on hubspot, still getting this error.
Copy code
Need help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.

Cannot list the selected attributes: Catalog discovery failed: command ['/home/swetaprabha/meltano/hubspot-bigquery/.meltano/extractors/tap-hubspot/venv/bin/tap-hubspot', '--config', '/home/swetaprabha/meltano/hubspot-bigquery/.meltano/run/tap-hubspot/tap.5c5ac625-d4e6-419a-9378-6d39185dbb07.config.json', '--discover'] returned 1 with stderr:
 Traceback (most recent call last):
 File "/home/swetaprabha/meltano/hubspot-bigquery/.meltano/extractors/tap-hubspot/venv/lib/python3.9/site-packages/tap_hubspot/client.py", line 173, in get_properties
  return res["results"]
KeyError: 'results'
s
Hey @sweta_garai, I will be adding in the fix for this this afternoon for you to get more clarity on why you are getting this error. I'll be using @pat_nadolny’s PR.
s
Thank you so much @Stéphane Burwash
s
Hey @sweta_garai, just merged @pat_nadolny’s changes - this should give you more insights into your error 😄
u
I'd also add that its easier to debug using the logging from
invoke
instead of
run
or
elt
. So if its erroring trying using
invoke
to get more details
s
@pat_nadolny by removing the singer package, I seem to have lost the
strptime_to_utc
utils function, which I now realize was imperative to my workflow. Could you know how I could get this function / reproduce it? If I can't get it, I will need to revert to a previous version
u
cc @edgar_ramirez_mondragon might know better
e
You can replace
singer.utils.strptime_to_utc
with
singer_sdk._singerlib.utils.strptime_to_utc
s
@Stéphane Burwash Hi, just following up on the singer issue. Is it good to go now?
s
Hey @sweta_garai, should be good to go yes! Please let me know if there are any issues
s
Hi @Stéphane Burwash. I tried hubspot-bigquery after a while today. Something is messed up after the fix. I am getting this error:
Copy code
Need help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.

Plugin configuration is invalid
singer_sdk.exceptions.FatalAPIError: 401 Client Error: Unauthorized for path: /crm/v3/objects/contacts
Can We fix this? Thanks
s
Hey @sweta_garai! I believe it's because your token is not authorized to get contacts. Is this possible?
s
I have used the same token before the singer issue happened. It should not be an issue to the best of my knowledge
I ran with the same token locally from the tap when the singer issue was not there and it runs okay. The new version after the changes seems to have some issue @Stéphane Burwash
s
The screenshot is from an older version of the plugin?
s
yes
u
@sweta_garai if you think this is a bug with the tap would you mind opening an issue in the repo? Please include the steps to reproduce the issue, any ideas to what you think might be causing the problem, things you've already tried to resolve the issue, and anything else thats relevant to help get it debugged quickly. Thanks!
s
What are the steps to open an issue? Is there a guide I can refer to?
p
s
Okay. opening an issue with all the steps to recreate it, also including my use-case for anyone to test the pipeline for end-end use case.
Please let me know if you need anything further to recreate the pipeline @pat_nadolny @Stéphane Burwash https://github.com/potloc/tap-hubspot/issues/57
Update: The final error was resolved with a minor fix. The auth token of hubspot private app was passed in all lower-case and the issue was resolved. Now I have a running hubspot-BQ pipeline. Thanks to @Stéphane Burwash @pat_nadolny @alexander_butler @taylor for all your support. 🙂
u
Glad you solved it!