UPC lookup problem
Great Project! Having difficulty with the UPC Lookup. Every barcode entry receives an error
Invalid UPC or Server Error.
The barcode is entered into the database without any accompanying information.
UPC is 024543079194
running the lookup URL with the barcode added works as expected.
https://api.upcitemdb.com/prod/trial/lookup?upc=024543079194
Error.log reads:
2019-03-28 02:41:43 Warning: Missing configuration file: "config/permissions.php". Using default permissions 2019-03-28 02:41:43 Warning: Warning (512): Unable to emit headers. Headers sent in file=/var/www/html/vendor/cakephp/cakephp/src/Error/Debugger.php line=853 in [/var/www/html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 48] Request URL: /assets/add Referer URL: http://192.178.5.84:8081/assets/add Client IP: 192.178.5.30 Trace: Cake\Error\BaseErrorHandler::handleError() - CORE/src/Error/BaseErrorHandler.php, line 159 Cake\Core\BasePlugin::{closure}() - ROOT/vendor/cakephp/debug_kit/config/bootstrap.php, line 42 Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 48 Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141 [main] - ROOT/webroot/index.php, line 40
2019-03-28 02:41:43 Warning: Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/html/vendor/cakephp/cakephp/src/Error/Debugger.php:853) in [/var/www/html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 148] Request URL: /assets/add Referer URL: http://192.178.5.84:8081/assets/add Client IP: 192.178.5.30 Trace: Cake\Error\BaseErrorHandler::handleError() - CORE/src/Error/BaseErrorHandler.php, line 159 Cake\Core\BasePlugin::{closure}() - ROOT/vendor/cakephp/debug_kit/config/bootstrap.php, line 42 header - [internal], line ?? Cake\Http\ResponseEmitter::emitStatusLine() - CORE/src/Http/ResponseEmitter.php, line 148 Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 54 Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141 [main] - ROOT/webroot/index.php, line 40
2019-03-28 02:41:43 Warning: Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/html/vendor/cakephp/cakephp/src/Error/Debugger.php:853) in [/var/www/html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 181] Request URL: /assets/add Referer URL: http://192.178.5.84:8081/assets/add Client IP: 192.178.5.30 Trace: Cake\Error\BaseErrorHandler::handleError() - CORE/src/Error/BaseErrorHandler.php, line 159 Cake\Core\BasePlugin::{closure}() - ROOT/vendor/cakephp/debug_kit/config/bootstrap.php, line 42 header - [internal], line ?? Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 181 Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55 Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141 [main] - ROOT/webroot/index.php, line 40
2019-03-28 02:41:43 Warning: Warning (2): Cannot modify header information - headers already sent by (output started at /var/www/html/vendor/cakephp/cakephp/src/Error/Debugger.php:853) in [/var/www/html/vendor/cakephp/cakephp/src/Http/ResponseEmitter.php, line 181] Request URL: /assets/add Referer URL: http://192.178.5.84:8081/assets/add Client IP: 192.178.5.30 Trace: Cake\Error\BaseErrorHandler::handleError() - CORE/src/Error/BaseErrorHandler.php, line 159 Cake\Core\BasePlugin::{closure}() - ROOT/vendor/cakephp/debug_kit/config/bootstrap.php, line 42 header - [internal], line ?? Cake\Http\ResponseEmitter::emitHeaders() - CORE/src/Http/ResponseEmitter.php, line 181 Cake\Http\ResponseEmitter::emit() - CORE/src/Http/ResponseEmitter.php, line 55 Cake\Http\Server::emit() - CORE/src/Http/Server.php, line 141 [main] - ROOT/webroot/index.php, line 40