Instantly share code, notes, and snippets.
Created
February 22, 2024 18:01
-
Star
0
(0)
You must be signed in to star a gist -
Fork
0
(0)
You must be signed in to fork a gist
-
Save jcreed/30c106bac9605064621adb1ed67bed14 to your computer and use it in GitHub Desktop.
Staging2 full pdf airbrake error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RuntimeError: Document currently unavailable: code - 503 | |
WHEN 10 minutes ago | |
MESSAGE Document currently unavailable: code - 503 | |
URL GET https://wa-stg2.aws-staging.webadmit.org/documents/4706584?type=FullApplicationPdf | |
FILE lib/documents/applicant_pdf_downloader.rb:10 | |
USER ADDRESS 10.144.13.222 | |
REMOTE ADDRESS 44.212.122.190 United States | |
USER AGENT | |
Chrome 121.0.0.0 | |
Backtrace | |
Show code hunks | |
lib/documents/applicant_pdf_downloader.rb:10 in call | |
def call | |
response = create_request.call | |
response.success? ? response.body : fail("Document currently unavailable: code - #{response.code}") | |
end | |
app/models/documents/downloadable_document.rb:27 in content | |
def content | |
downloader.call | |
rescue => e | |
self.errors_count += 1 | |
Parameters | |
{ | |
"action": "show", | |
"controller": "documents", | |
"id": "4706584", | |
"type": "FullApplicationPdf" | |
} | |
Environment | |
{ | |
"program_name": "Passenger RubyApp: /opt/app (staging-aws)" | |
} | |
Session | |
{ | |
"_csrf_token": "kJgUXUAOF1ai-s2YLYFTLstMUngtqNY36qDLosU6eM4", | |
"csrf": "wskfS4rWg9pH6gXwsOdWNSU7sdzWuC7gTM87lReUdDA=", | |
"impersonated_id": "225280", | |
"impersonation_user_identity_id": "1054637", | |
"impersonator_id": "234231", | |
"session_id": "0d8b5b01f6d09b308a5752f0e607e6d51c0f531995b6f7441b8c04b2795bb0ec", | |
"tracking": { | |
"HTTP_USER_AGENT": "mozilla/5.0 (macintosh; intel mac os x 10_15_7) applewebkit/537.36 (khtml, like gecko) chrome/121.0.0.0 safari/537.36" | |
}, | |
"user_credentials": "b9af355c5ee79992327fc2e4fc8d7669a73285aca81caabe7c07e799aa9ab6cd8cb8151d2039c36424ee927f7c13a0660e1a3824cd140545bff2ab08294e4eb5", | |
"user_credentials_id": "76228" | |
} | |
Context | |
{ | |
"action": "show", | |
"component": "documents", | |
"environment": "staging2", | |
"error_message": "Document currently unavailable: code - 503", | |
"headers": { | |
"HTTP_ACCEPT": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7", | |
"HTTP_ACCEPT_ENCODING": "gzip, deflate, br", | |
"HTTP_ACCEPT_LANGUAGE": "en-US,en;q=0.9", | |
"HTTP_CACHE_CONTROL": "no-cache", | |
"HTTP_COOKIE": "__utmc=164276832; __utmz=164276832.1704752029.276.2.utmcsr=liaison.airbrake.io|utmccn=(referral)|utmcmd=referral|utmcct=/; _hp2_props.3085264924=%7B%22CAS%20Name%22%3A%22AACOMAS%22%2C%22Cycle%22%3A%222024%22%7D; _hp2_id.3085264924=%7B%22userId%22%3A%223282125638411099%22%2C%22pageviewId%22%3A%223972385009719571%22%2C%22sessionId%22%3A%222325536946340846%22%2C%22identity%22%3Anull%2C%22trackerVersion%22%3A%224.0%22%7D; _hp2_props.3682537632=%7B%7D; _hp2_props.2716432532=%7B%7D; user_credentials=b9af355c5ee79992327fc2e4fc8d7669a73285aca81caabe7c07e799aa9ab6cd8cb8151d2039c36424ee927f7c13a0660e1a3824cd140545bff2ab08294e4eb5%3A%3A76228; __utma=164276832.598337076.1684525820.1708612255.1708623055.320; __utmb=164276832.1.10.1708623055; _hp2_id.3682537632=%7B%22userId%22%3A%228013327397835228%22%2C%22pageviewId%22%3A%224989969580594088%22%2C%22sessionId%22%3A%222386523419371858%22%2C%22identity%22%3Anull%2C%22trackerVersion%22%3A%224.0%22%7D; _hp2_ses_props.3682537632=%7B%22r%22%3A%22https%3A%2F%2Fcurrent.webadmit.org%2Fadmin%2Fstatus%22%2C%22ts%22%3A1708623054635%2C%22d%22%3A%22current.webadmit.org%22%2C%22h%22%3A%22%2Fsession%2Fnew%22%7D; _hp2_id.2716432532=%7B%22userId%22%3A%223687079455192378%22%2C%22pageviewId%22%3A%22754056512417875%22%2C%22sessionId%22%3A%225291995170891474%22%2C%22identity%22%3Anull%2C%22trackerVersion%22%3A%224.0%22%7D; _hp2_ses_props.2716432532=%7B%22r%22%3A%22https%3A%2F%2Fwa-qa.aws-staging.webadmit.org%2Fadmin%2Flookups%22%2C%22ts%22%3A1708623837567%2C%22d%22%3A%22wa-qa.aws-staging.webadmit.org%22%2C%22h%22%3A%22%2Fadmin%2Fsplashes%22%7D; _hp2_ses_props.1908515165=%7B%22ts%22%3A1708623911449%2C%22d%22%3A%22wa-stg2.aws-staging.webadmit.org%22%2C%22h%22%3A%22%2Fadmin%2Fstatus%22%7D; rack.session=BAh7DEkiD3Nlc3Npb25faWQGOgZFVG86HVJhY2s6OlNlc3Npb246OlNlc3Npb25JZAY6D0BwdWJsaWNfaWRJIkUwZDhiNWIwMWY2ZDA5YjMwOGE1NzUyZjBlNjA3ZTZkNTFjMGY1MzE5OTViNmY3NDQxYjhjMDRiMjc5NWJiMGVjBjsARkkiEF9jc3JmX3Rva2VuBjsAVEkiMGtKZ1VYVUFPRjFhaS1zMllMWUZUTHN0TVVuZ3RxTlkzNnFETG9zVTZlTTQGOwBUSSIjaW1wZXJzb25hdGlvbl91c2VyX2lkZW50aXR5X2lkBjsAVGkDtVALSSIVdXNlcl9jcmVkZW50aWFscwY7AFRJIgGAYjlhZjM1NWM1ZWU3OTk5MjMyN2ZjMmU0ZmM4ZDc2NjlhNzMyODVhY2E4MWNhYWJlN2MwN2U3OTlhYTlhYjZjZDhjYjgxNTFkMjAzOWMzNjQyNGVlOTI3ZjdjMTNhMDY2MGUxYTM4MjRjZDE0MDU0NWJmZjJhYjA4Mjk0ZTRlYjUGOwBUSSIYdXNlcl9jcmVkZW50aWFsc19pZAY7AFRpA8QpAUkiCWNzcmYGOwBUSSIxd3NrZlM0cldnOXBINmdYd3NPZFdOU1U3c2R6V3VDN2dUTTg3bFJlVWREQT0GOwBUSSINdHJhY2tpbmcGOwBUewZJIhRIVFRQX1VTRVJfQUdFTlQGOwBUSSJ6bW96aWxsYS81LjAgKG1hY2ludG9zaDsgaW50ZWwgbWFjIG9zIHggMTBfMTVfNykgYXBwbGV3ZWJraXQvNTM3LjM2IChraHRtbCwgbGlrZSBnZWNrbykgY2hyb21lLzEyMS4wLjAuMCBzYWZhcmkvNTM3LjM2BjsAVA%3D%3D--078b8acbc643a1d18afe3b686c5262cd19d8994b; _hp2_props.1908515165=%7B%22CAS%20Name%22%3A%22Watertown%20University%22%2C%22Cycle%22%3A%222015%22%7D; _hp2_id.1908515165=%7B%22userId%22%3A%223536682802548416%22%2C%22pageviewId%22%3A%22190335101022116%22%2C%22sessionId%22%3A%224857243710396715%22%2C%22identity%22%3Anull%2C%22trackerVersion%22%3A%224.0%22%7D; _webadmit_session=6elYH9av15aI5TtrS0hSHpRAzxYTy%2FpsN7bsNLJUIyOKkAvf%2FkKSyZRd5JCwP0mWc3q92HKfFWcqXnMT9ldM95FRBJ2QCuQRQ8noQ70FgfFQyp0tUrgDYR4CwwGTzyY9LoKlOEny%2FbT2AJxbIf82LqIKw3Ea0gm72XJKlJdopHVAE%2FVfBQ0cbW8KE1zeFJeEp3BMEItzPF8E9RvnYPcsFtEjg%2FWjx7W%2F%2BSnMWqsG%2Bbw4%2Fpk5z3pmU2DlPumo3Q7SodacFoU7re4KDaAfuy4pkoD7X%2FWzbVERPLLyippv4yXpVq4xAqtFnMrlb6sSq6ejmp8G9jQWD%2FPl4yxEvwqz2OtFg1U03uUyzJbf5WsRP3j7FmLQLAaatvje6RUwjt64VrkXPXLB7qxHnt3fb%2BT9YeERoLOStgJ9rLW%2B6LYMUzpb4gp78yvuPqCyVvhcFClHs6iYOzZRusMmcBLwcsP5PTSPcg7j6325RE1jVvoY4n2i4P%2FehVtkfNHI5IIB8oY907DGF2FHscNJOBJiyUN4B%2FnlDDomZPp2btJ%2BZrQZGZljD4U0XUyMMZz5UdAJ%2BPBUF4yAo3Wvhoi36Yjbh5zuK%2BdgCHbty8UNvBUF5xz%2F7MMyMIkHo4nuFDFdm4DiUZJ9IOi1UZFWu3cQvkOHQC1LgqAr9RaEnLn1GPfFTHiwHT6onvfQ335IAXXn7Crkncz1zPCm6ksI3NZ3q9yyGzva1KbFM1XRNnJwJvPh%2BrrywQJnww1A5EvnXRTiP%2F6inheqM4SxtFLFI8sqqzaQVaVf6PR9xiipsKOW4dIHIVsnZ1%2F0i8LrsU04pwLra1wnBaL4P%2Bj5NzD2ax5ei4I4wsOE%2FeLUVLObl7SwA7T8UnO2IhT8p0Om%2BNBGauuX64HekEq%2BzmhsBPpQrfNK4QwySEV6oI4WmlBTEdu%2BsutBqB2q1U032dToTr9s%2Bp%2F5xyYtdrojERK4xiqR77m96s00wztVvXtjLuG7d7l%2BbK7QlZE18IyoOBi7%2FEPR28FYpPVWZM7qcixzhROdmSMSC0FI0r%2FwG9NdOqLY5Q9EtM6Wjj5aGMn2ZrwSfx1SP4OYMwaxzBOeIzN5tm66Q5F%2FrSykMVXhoptPbSdDzCuBt1RZ%2Bknlfxfbaj1Kad4O2EnEQlidvzYpHefUsdNUM7lmlMcPPcfXCGYUZUv3zfDKHw%3D%3D--jld2DS38MWsud0Et--Ab6r3VajBEv4AgEEqqp4uA%3D%3D", | |
"HTTP_HOST": "wa-stg2.aws-staging.webadmit.org", | |
"HTTP_PRAGMA": "no-cache", | |
"HTTP_REFERER": "https://wa-stg2.aws-staging.webadmit.org/applicants/893222", | |
"HTTP_SEC_CH_UA": "\"Not A(Brand\";v=\"99\", \"Google Chrome\";v=\"121\", \"Chromium\";v=\"121\"", | |
"HTTP_SEC_CH_UA_MOBILE": "?0", | |
"HTTP_SEC_CH_UA_PLATFORM": "\"macOS\"", | |
"HTTP_SEC_FETCH_DEST": "document", | |
"HTTP_SEC_FETCH_MODE": "navigate", | |
"HTTP_SEC_FETCH_SITE": "same-origin", | |
"HTTP_UPGRADE_INSECURE_REQUESTS": "1", | |
"HTTP_USER_AGENT": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36", | |
"HTTP_VERSION": "HTTP/1.1", | |
"HTTP_X_FORWARDED_FOR": "10.144.13.222", | |
"HTTP_X_FORWARDED_HOST": "wa-stg2.aws-staging.webadmit.org", | |
"HTTP_X_FORWARDED_PORT": "443", | |
"HTTP_X_FORWARDED_PROTO": "https", | |
"HTTP_X_FORWARDED_SERVER": "traefik-external-989fd7879-2cv7r", | |
"HTTP_X_REAL_IP": "10.144.13.222" | |
}, | |
"hostname": "wa-app-65d55fd965-nxwvg", | |
"httpMethod": "GET", | |
"language": "ruby/3.3.0", | |
"messageParams": { | |
"0": 0, | |
"1": 503 | |
}, | |
"messagePattern": "Document currently unavailable: code {} {}", | |
"notifier": { | |
"name": "airbrake-ruby", | |
"url": "https://github.com/airbrake/airbrake-ruby", | |
"version": "6.2.1" | |
}, | |
"os": "x86_64-linux", | |
"referer": "https://wa-stg2.aws-staging.webadmit.org/applicants/893222", | |
"remoteAddr": "44.212.122.190", | |
"remoteCountry": "United States", | |
"remoteCountryCode": "US", | |
"rootDirectory": "/opt/app", | |
"route": "/documents/:id(.:format)", | |
"severity": "error", | |
"url": "https://wa-stg2.aws-staging.webadmit.org/documents/4706584?type=FullApplicationPdf", | |
"urlInfo": { | |
"host": "wa-stg2.aws-staging.webadmit.org", | |
"path": "/documents/4706584", | |
"query": { | |
"type": "FullApplicationPdf" | |
}, | |
"rawQuery": "type=FullApplicationPdf", | |
"scheme": "https" | |
}, | |
"user": { | |
"email": "[email protected]", | |
"id": "225280", | |
"name": "508 Test", | |
"username": "" | |
}, | |
"userAddr": "10.144.13.222", | |
"userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/121.0.0.0 Safari/537.36", | |
"userAgentInfo": { | |
"browserName": "Chrome", | |
"browserVersion": "121.0.0.0", | |
"engineName": "AppleWebKit", | |
"engineVersion": "537.36", | |
"isBot": false, | |
"isMobile": false, | |
"os": "Intel Mac OS X 10_15_7", | |
"platform": "Macintosh" | |
}, | |
"userCountry": "Reserved", | |
"userCountryCode": "ZZ", | |
"versions": { | |
"rails": "7.1.2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment