-
-
Notifications
You must be signed in to change notification settings - Fork 532
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
Error 500 with Defuse while inserting new item through API #1624
Comments
In api/function.php we still get "err": "password is empty" after todays code commit. Array |
With latest version we see errors while inserting new items through API.
Browser gets error 500 response and PHP log output is below:
[18-Jan-2017 11:45:51 Europe/Helsinki] PHP Fatal error: Uncaught exception 'Defuse\Crypto\Exception\EnvironmentIsBrokenException' in /srv/www/tp/htdocs/includes/libraries/Encryption/Encryption/Core.php:245 Stack trace: #0 /srv/www/tp/htdocs/includes/libraries/Encryption/Encryption/Core.php(106): Defuse\Crypto\Core::ensureFunctionExists('random_bytes') #1 /srv/www/tp/htdocs/includes/libraries/Encryption/Encryption/Key.php(23): Defuse\Crypto\Core::secureRandom(32) #2 /srv/www/tp/htdocs/includes/libraries/Encryption/Encryption/RuntimeTests.php(85): Defuse\Crypto\Key::createNewRandomKey() #3 /srv/www/tp/htdocs/includes/libraries/Encryption/Encryption/RuntimeTests.php(60): Defuse\Crypto\RuntimeTests::testEncryptDecrypt() #4 /srv/www/tp/htdocs/includes/libraries/Encryption/Encryption/Crypto.php(183): Defuse\Crypto\RuntimeTests::runtimeTest() #5 /srv/www/tp/htdocs/includes/libraries/Encryption/Encryption/Crypto.php(31): Defuse\Crypto\Crypto::encryptInternal('secretpassword', Object(Defuse in /srv/www/tp/htdocs/includes/libraries/Encryption/Encryption/Core.php on line 245
Request is: http://server/api/index.php/add/item/dGVzdC0yMDE3MDExOC0xMTQ3MTY7c2VjcmV0cGFzc3dvcmQ7OzY0Mjtyb290Ozs7OzE?apikey=secretkey
The text was updated successfully, but these errors were encountered: