-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
"Session does not exist in console request" gets thrown using the assetservice from a command line script #2798
Comments
lenvanessen
changed the title
Session does not exist in console request get thrown on console command
"Session does not exist in console request" gets thrown using the assetservice from a command line script
Apr 24, 2018
Thanks for reporting! |
For info, this (or very similar) error still persists if the asset folder is empty. May not be a big deal though, as there are no assets to index, although would be good to not throw an error.
|
@amityweb Thanks for reporting. Just fixed for the next release. To get the fix early, change your "require": {
"craftcms/cms": "dev-develop#ef2327fa616bbfd2d5b82d5f78a776011078add1 as 3.2.1",
"...": "..."
} Then run |
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
Description
The
getUserTemporaryUploadFolder
method tries to obfusticate the foldername by using a session ID, which is not present in a console request. Causing an exception to be thrown.In this case this is using the a plugin.
Perhaps there is a better way to add a random obfustication key, without relying on session data, for instance when triggered by a console request this would be a huge benefit.
Additional info
The text was updated successfully, but these errors were encountered: