Closed (fixed)
Project:
HubSpot
Version:
3.0.0-alpha4
Component:
Documentation
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
1 Mar 2021 at 11:04 UTC
Updated:
21 Nov 2024 at 03:32 UTC
Jump to comment: Most recent
Comments
Comment #2
rondog469 commentedWhat are all your scopes? This is a note in the hubspot api docs
I believe you also need the oauth scope
Comment #3
drupalninja99 commentedSo I was able to get past this step with "oauth forms crm.objects.contacts.write" and checking "Contacts", "Forms" and "Basic OAuth functionality" in app configuration. I haven't fully tested the module end to end but this at least let me connect on this page.
Comment #4
espi.juanjo commentedHi drupalninja99,
I have the same issue. Can you elaborate a bit, as I did exactly what you are saying and still not working. May be I lost some step...
Thanks in advance.
Comment #5
juanjoespi commentedHi.
I finally could do the connection.
This is how I could fix this error and how, imho should be somewhere in the documentation of this module.
1) You need a hubspot developer account
2) You need to have a "normal" account and both have to be accesible by the same email.
3) You indeed need to create a public APP with the scopes mentioned early in this thread
4) You will need to put the developer account ID and the APP keys (public and secret) in the module options
5) Then, when you arrive to the hubspot site and are asked for the account you should connect to, you need to select the normal one (with the form in it), not the developer one.
regards.
Comment #6
branram commentedI've tried connecting Version: 3.0.0-alpha1 to Drupal 9, and nothing is allowing me to connect it... I've tried a number of variations of scopes. Normally we just use forms and contacts. Each time, I keep getting the below error message when I attempt to connect to Hubspot.
Couldn’t complete the connection
The redirect_uri doesn't match the client registered redirect_uri. Please contact the app developer.
I'm not sure if it this is some new requirement or what... This is an existing app we've been using for years, connecting it to a new website on D9. I have no idea what the issue is. Has anyone been able to connect this module to Hubspot recently?
Comment #7
branram commentedAfter wasting a better part of two hours trying to figure out the issue with the 3.0.0-alpha1 module... I uninstalled it and went with the 8x alpha. And it connected immediately without issue. Beyond frustrating. What is the point of this version?
Comment #10
richgerdes@rondog469 and @drupalninja99 thanks for providing support here.
By default the module requires the three scopes `oauth forms contacts`. You should be able to manually type those into the hubspot integration interface. I'ved updated the projects readme with this information and default config to provide this as a requirement. Some projects may require additional scopes if they extend the functionality.
@branram, the different in between 1.x and 3.x was to provide support for the 3.x version of the hubspot api. Version 1.x used the 2.x hubspot api, which doesn't support some features such as adding GDPR consent to form data. While there isn't a ton of extra functionality around these features yet, I made the version change to allow for adding the new dependency and improving the way some of the data was handled when sending data to the api. You should be able to upgrade from 1.x to 3.x without any major issues, however you will need to run database updates, since the configuration structure is changed slightly. The 3.x version flips values and keys, to allow form options to be mapped to more then one input in hubspot, while the 1.x version only allowed for values to be used once. There is an automated db update which should handle this. If you continue to have issues with 3.x, please feel free to open additional support tickets.
Comment #11
richgerdesComment #12
rondog469 commented@richgerdes thanks for doing that update. I will take some time next week and run through the 3.x-dev version and test it out.
Comment #14
perfectcu.be commentedUsing 3.0.0-alpha4 I was unable to connect with the recommended scopes in this thread and the README.md file included with this module. Specifically this:
...Which yields this HubSpot Scope string at the modules config page here
/admin/config/services/hubspot:oauth forms contactsThe following scopes string worked for me with the current hubspot API scopes documentation:
oauth forms crm.objects.contacts.read crm.schemas.contacts.read crm.objects.contacts.write crm.schemas.contacts.write