Strange error message - getBible global options #475
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#475
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps to reproduce the issue
Go to
/administrator/index.phpoption=com_componentbuilder&view=import_joomla_components&target=smartPackage
Expected result
Error with a clear description on where to put to access token.
Actual result
Error with message:
You can add an access token to getBible global options to make authenticated requests. An access token with only public access will do.
System information (as much as possible)
Additional comments
What and where is "getBible global options" ? In other words, where do I add the access token? :)
What package did you try to import? did you watch the tutorials on how to import a JCB package?
The error is weird since I don't think we have getBible linked to any package... well it could be a shared note that I mistakenly updated that is used in both JCB and getBible.
But lets start with what package you tried to import.
O yes and before I forget... please use Firefox when working in JCB GUI.
I build JCB on Linux in Firefox just for my own use, but have since 2015 started sharing it with the larger Joomla community. Who has from time to time run into quarks due to my development environment. So for best experience try to get as close to my environment as is possible to you.
Here is a little video on using the Bitnami stack, which has become sort of the standard for JCB.
I tried several. It’s the same getBible massage on them all :)
And yes I watched the tutorial, but this comes as soon as I open the import view
Do you have curl turned on?
Please send me a screen-shot of the error message.
Yes, and It's on a shared host. But I don´t have the error on a bitnami stack I just installed. So that solved it :)
Anyways, where do I put the access token if I have to?
For this area to work (import of JCB packages), it makes API calls to github. If you have other applications who also made calls from the same IP (if shared host - other clients on the same host) then github will reach its limit on free unofficial calls, and will start asking for a token, and that triggers this warning.
The error is also used in another component I build called getBible so I need to fix that message to be more JCB related (that is why I asked for a screenshot). At this time JCB does not have a place to add a token, since the amount of calls it makes is very low that we have hardly ever seen this error come up (well I have never seen it and I use JCB everyday). But I guess the time has come to add it in and give better instructions in the message. Everything for it is ready (back-end) we simple need to add it to the GUI.... so I will push it out on the next release.
I just when over the code and found where I should fix the message:
So it is in a helper method called
githubErrorHandeler
that is used in both JCB and getBible as you can see above.For the future, the global options of any component is found at the top right corner in any of its list admin views. The button that says [options]
So looking at the code you reached the API free limit on that shared host, so that error came up to have you add a token for which JCB at this time did not have a field... but will soon, with better message 👍
Okay perfect! That answer all my questions!
Thank you for taking your time to figure it out and help me.