701 invalid url response on image's external url of an email | Community
Skip to main content
Level 2
July 27, 2021
Question

701 invalid url response on image's external url of an email

  • July 27, 2021
  • 1 reply
  • 2338 views

Hello everyone,

 

When I submit a REST POST request to update an email content section endpoint which has the external url property, the request fails with this error: Marketo API error (701): "invalid url". It only gives me that error on certain websites, most of the website works.

Not working: (via.placeholder.com/1280x640.jpg). 

I tried several different websites and most of them work, but some fail with that 701 error.

/rest/asset/v1/email/{id}/content/{htmlId}.json

Is there some kind of validation in the url property that is not documented or that I am not aware of?

 

Thanks,

1 reply

SanfordWhiteman
Level 10
July 27, 2021

What’s another one that does work?

Level 2
July 28, 2021

Working urls: placekitten.com/200/300

                         i.picsum.photos/id/237/200/300.jpg?hmac=TmmQSbShHz9CdQm0NkEjx1Dyh_Y984R9LpNrpvH2D_U

 

 

 

SanfordWhiteman
Level 10
July 28, 2021
As off-kilter as it is, I wonder if the difference is the presence of CORS headers (in the ones that work).

This doesn’t make sense from a technical standpoint, as images are not blocked if Access-Control-Allow-Origin isn’t sent. But it does distinguish the 2 that work from the 1 that doesn’t.