Title: Error When Optimizing:
Last modified: March 15, 2023

---

# Error When Optimizing:

 *  Resolved [stayfitcentralcurt](https://wordpress.org/support/users/stayfitcentralcurt/)
 * (@stayfitcentralcurt)
 * [3 years ago](https://wordpress.org/support/topic/error-when-optimizing/)
 * Hello,
 * I’m trying to optimize images using Imagery and keep getting the same message
   which says “Invalid token header. No credentials provided. “
 * I checked and our API is installed w imagify and we have plenty of space left
   with our account.
 * Any ideas what I need to do fix are greatly appreciated.
 * Curt
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Ferror-when-optimizing%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 1 replies (of 1 total)

 *  Plugin Author [WP Media](https://wordpress.org/support/users/wp_media/)
 * (@wp_media)
 * [3 years ago](https://wordpress.org/support/topic/error-when-optimizing/#post-16565990)
 * Hi [@stayfitcentralcurt](https://wordpress.org/support/users/stayfitcentralcurt/)
 * I am sorry to hear about the issue!
 * Can you try to uninstall and re-install Imagify and then re-apply your API key?
   Your already optimized images won’t be affected. 
 * Once you have done the above you can try to test optimization again if it started
   working. If there is still an issue can you please check [this guide](https://imagify.io/documentation/optimization-is-stuck/)
   if it helps you to solve the error?
 * Feel free to let me know how it goes.
 * Best Regards,
 * Ioanna

Viewing 1 replies (of 1 total)

The topic ‘Error When Optimizing:’ is closed to new replies.

 * ![](https://ps.w.org/imagify/assets/icon-256x256.gif?rev=3452959)
 * [Imagify Image Optimization – Optimize Images | Compress Images | Convert WebP | Convert AVIF](https://wordpress.org/plugins/imagify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/imagify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/imagify/)
 * [Active Topics](https://wordpress.org/support/plugin/imagify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/imagify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/imagify/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [WP Media](https://wordpress.org/support/users/wp_media/)
 * Last activity: [3 years ago](https://wordpress.org/support/topic/error-when-optimizing/#post-16565990)
 * Status: resolved