Common errors
Review this section for information about common errors and how they can be resolved.
Import error
An import error occurs if you attempt to import an EdgeWorkers module that doesn’t include the .js extension in the module name.
To resolve this error update the import statement to include the extension in the module name yourmodules.js. Once you update the module name, re-activate the EdgeWorker version.
500 Internal Server error
A 500 Internal Server Error can occur as the result of an EdgeWorker request.
To learn more, re-issue the request with the Pragma: akamai-x-ew-debug debug header. The results of the re-issued request include a header with information about the error for each callback.
For more information refer to the Enhanced debug header details section.
Upload error
Upload errors typically occur if you attempt to install the EdgeGrid plugin for HTTPie using an older version of Python.
Use this command to resolve the Python version upload error:
See the troubleshooting section in the httpie-edgegrid documentation for more information.
Token or permission error
A token or permission error occurs when the role assigned to the access-token does not have permission to use the EdgeWorker API.
You can add the required permissions to the role to resolve this issue. For more information see the Identity and Access Management help.
EdgeWorkers CLI root user error
You will receive an error message when attempting to use the EdgeWorkers CLI if the package was installed as root. To resolve this issue you can use npm commands to facilitate the install process.
For automation environments such as Dockerfile, run this command to avoid the root user error:
If you aren’t using an automation environment, use these manual steps to avoid the root user error:
Navigate to the source drop directory:
Build with root user permissions allowed: