Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot publish site with new images.

See original GitHub issue

Describe the bug Image files become XML-files with errors after publish.

To Reproduce I follow the how to guide to create a new design. I upload new pictures, I leave the site running and run the npm run publish. This seems to pull image files from blob storage and store them in the website/content folder. The files become 1 kb large jpgs. I opened the jpgs in VS and saw that they are xml files, containing errors.

<?xml version="1.0" encoding="utf-8"?><Error><Code>ResourceNotFound</Code><Message>The specified resource does not exist. RequestId:c87ba921-701e-0036-1776-d259a6000000 Time:2019-03-04T10:39:08.2825033Z</Message></Error>

Expected behavior Files should be jpegs.

Screenshots I also have the run log from chrome showing som additional information from when I added a new image to the site: image

Additional context Basically it seems it cannot get the file from blob storage when the publish script runs.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

mikaelsandcommented, Mar 6, 2019

Ok. Finally got around to making a small video for you guys. I have shared it on my onedrive:✌️/g/personal/mikael_sand_enfo_se/EajZxKX5X5dAuC94fknZa6kBCiQEFD60Cb3DXRIY6ag2TQ?e=hFpOsJ

To answer questions above: This ONLY happens to fresh files. I enabled cors (I can see that the file is correctly referenced but it is an xml file). The image was not deleted prior to publishing the site. I have generated all new keys for everything today just to make sure. Everything else works, the names are correct and I can find references to them using APIm API.

azaslonovcommented, Mar 7, 2019

Great! Thanks for confirming and for helping us nail it down, @mikaelsand.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't edit or publish new posts/pages/categories/upload images
We can't neither upload new images, we get the message: Unexpected response from the server. We can't create or edit categories either. We...
Read more >
"Word cannot publish the pictures in this post." using Word
"Word cannot publish the pictures in this post." using Word 2016 and SharePoint Online · 1.Open Word >File >New >Select Blog post template...
Read more >
Cannot publish the site. Just gives message saying there was ...
I try to create a new site with only one page and this is able to publish. If some things is changed for...
Read more >
Having Problems Publishing Your Website? Try These 5 Things
Problem #4: Images are appearing as broken links · The images could be uploaded to the wrong folder. · You could have the...
Read more >
Can't publish because of non-existent stock images
You cannot publish a project without a license to the Adobe Stock image", but I have paid for the license for each image...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found