问题
I'm having an issue validating my Twitter Card in development.
I have configured my router's public IP to point to my internal LAN IP/port http://119.21.79.135:3000
Given the meta tags are in place;
<meta name="twitter:card" content="photo" />
<meta name="twitter:site" content="@flickr" />
<meta name="twitter:title" content="Mountain sunset" />
<meta name="twitter:description" content="Explore Reza-Sina's photos on Flickr. Reza-Sina has uploaded 113 photos to Flickr." />
<meta name="twitter:image" content="http://farm8.staticflickr.com/7334/11858349453_e3f18e5881_z.jpg" />
<meta name="twitter:url" content="https://www.flickr.com/photos/reza-sina/11858349453/" />
I've tested this with a production/staging link and the Twitter card validator works.
However, in development, Twitter card validator log returns this error:
ERROR: Internal server error
Whenever I run the validator against my public IP, nothing shows up in log/development.log
Has anyone experienced anyone similar?
回答1:
An update has been pushed for the validator to hopefully resolve most instances where "ERROR: Internal Server Error" would be returned. Please give it a try and let me know whether or not you are still experiencing issues!
I tried your tags on my own domain just now and the card displays (except for the fact that the Flickr photo no longer exists).
来源:https://stackoverflow.com/questions/26177835/twitter-card-validator-error-when-in-development