-
Notifications
You must be signed in to change notification settings - Fork 120
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
Invalid baseUrl #198
Comments
Will you provide a minimal test example of what you're trying to do? For example: node -e "new (require('tumblr.js').Client)({consumer_key: 'foo', consumer_secret: 'bar'})"
As I understand, you should be providing either a node -e "new (require('tumblr.js').Client)({consumer_key: 'foo', consumer_secret: 'bar', token: 'baz', token_secret: 'quux'})" I'm surprised you're seeing anything about |
I should also mention, that I am working in ES6, so I am importing the module, not requiring it. Could this somehow cause the baseUrl error? |
The library doesn't officially support Node 14. Node 14's end-of-life was 2023-04-30. I'll close this because it seems to be due to an unsupported Node version. While we don't support Node 14, I will say that 14.15.4 is an old release within the 14 line, the latest being 14.21.3. With 14.21.3 I don't see any issues with the same test code I shared above. If you can't upgrade to a supported Node version, maybe at least getting onto a more recent v14 release would help.
That shouldn't be an issue, the integration tests are ES modules and don't have any issues: tumblr.js/integration/read-only.mjs Line 2 in 0d66f3c
|
Hi! I updated to node 18 and the invalid baseUrl error persists in the browser, whereas when running the code you provided with my consumer key and secret the error becomes that of authentication: |
It sounds like it's working correctly in Node 18. You'll either need to provide only the As mentioned in the README, this library isn't intended for in-browser use. That's something we could work on, however, if folks are interested. If you are interested, please open a new issue for that and we can consider it and start to understand the demand for that. |
That may be a good place to start, you can contact Tumblr support through the help page: https://help.tumblr.com/hc/en-us |
I create the client with only the consumer_key and consumer_secret fields filled out and the tokens left out, as I don't need them and I get the type error "Invalid baseUrl option provided." - I can't seem to find anything about this issue documented anywhere. Could someone point me in the direction of quickly resolving this ?
The text was updated successfully, but these errors were encountered: