1
0
Fork 0
forked from OpenNeo/impress
impress/app/models
Emi Matchu e337767954 Fix "couldn't download the associated Flash files" when modeling
So this was a slightly wrong error message, what was happening was:

1. Trying to load the image hash for this pet, by looking them up at
   https://pets.neopets.com/cpn/PET_NAME/1/1.png and seeing what URL it
   redirects to.
2. But pets.neopets.com was rejecting our User-Agent string, which
   would've been just "Ruby", since we hadn't set it otherwise. I guess
   that's an explicitly banned string?

I also found that the kind of more-helpful User-Agent string I like to
write was being rejected, and I could only get it to accept something
very simple? So that's what we're using now, I guess!!
2024-01-15 01:15:35 -08:00
..
item
application_record.rb
auth_record.rb
auth_user.rb
campaign.rb
closet_hanger.rb
closet_list.rb
closet_visibility.rb
color.rb
contribution.rb
donation.rb
donation_feature.rb
item.rb
item_outfit_relationship.rb
neopets_connection.rb
neopets_page.rb
outfit.rb
parent_swf_asset_relationship.rb
pet.rb
pet_state.rb
pet_type.rb Fix "couldn't download the associated Flash files" when modeling 2024-01-15 01:15:35 -08:00
species.rb
swf_asset.rb
user.rb
zone.rb