Closed Bug 1193739 Opened 11 years ago Closed 11 years ago

Marketplace app crashes when click the install button to buy

Categories

(Marketplace Graveyard :: Payments/Refunds, defect, P2)

Avenir
All
Gonk (Firefox OS)
defect

Tracking

(Not tracked)

RESOLVED FIXED
2015-09-08

People

(Reporter: marsf, Assigned: kumar)

Details

Uninput Keyboard https://marketplace.firefox.com/app/uninput/ Open this paid-app page and click "install" button. Then,the error page is shown: "Marketplace just crashed. - The app has encountered an error." So, I cannot go to PIN input form. I'm not sure which side (this my app or Marketplace site) causes the error. Device: Flame OS version: Firefox OS 2.2 Build ID: 20150811032503 100% reproducible for me (from Japan).
Flags: needinfo?(krupa.mozbugs)
Priority: -- → P2
I can reproduce this issue on 2.2 logs are https://pastebin.mozilla.org/8843356 08-20 13:23:02.985 W/GeckoConsole( 211): Content JS WARN: L10nError: "The connection to the server was reset while the page was loading." not found in en-US in about:neterror?e=nssFailure2&u=https%3A//marketplace.firefox.com/mozpay/%3Freq%3DeyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJhdWQiOiAibWFya2V0cGxhY2UuZmlyZWZveC5jb20iLCAiaXNzIjogIm1hcmtldHBsYWNlLmZpcmVmb3guY29tIiwgInJlcXVlc3QiOiB7ImNoYXJnZWJhY2tVUkwiOiAiaHR0cHM6Ly9tYXJrZXRwbGFjZS5maXJlZm94LmNvbS9zZXJ2aWNlcy93ZWJwYXkvY2hhcmdlYmFjayIsICJuYW1lIjogIlVuaW5wdXQgS2V5Ym9hcmQiLCAicHJvZHVjdERhdGEiOiAiYWRkb25faWQ9NTA2MjQ3JmJ1eWVyX2VtYWlsPWtyYWolNDBtb3ppbGxhLmNvbSZwdWJsaWNfaWQ9YzI2YmZiOTMtYzM5Yi00N2I3LWIwYTAtZjhlOWI0ZDA4MTJjJmFwcGxpY2F0aW9uX3NpemU9NzU0NDY1JmNvbnRyaWJfdXVpZD0yZTYyMzJlNi1hMWIwLTRiYjgtODI0YS01MDU3N2E5MjM3YTciLCAiaWNvbnMiOiB7IjEyOCI6ICJodHRwczovL21hcmtldHBsYWNlLmNkbi5tb3ppbGxhLm5ldC9pbWcvdXBsb2Fkcy9hZGRvbl9pY29ucy81MDYvNTA2MjQ3LTEyOC5wbmc_bW9kaWZpZWQ9NDgwMjg1MjEiLCAiMzIiOiAiaHR0cHM6Ly9tYXJrZXRwbGFjZS5jZG4ubW96aWxsYS5uZXQvaW1nL3VwbG9hZHMvYWRkb25faWNvbnMvNTA2LzUwNjI0Ny0zMi5wbmc_bW9kaWZpZWQ9ND
Flags: needinfo?(krupa.mozbugs)
As far as I can tell no errors are being generated in zamboni. It's not even hitting webpay. So its either an nginx or device side error.
I don't know if jason can spot anything it might be...
Flags: needinfo?(jthomas)
I believe nssFailure2 refers to secure connection failed, so we wouldn't see this come through to the application. I am checking our load balancer logs to make sure nothing strange is happening with TLS, we haven't changed these settings in a while.
I didn't see anything unusual at our load balancer, nothing in the logs. Is it possible to get more debugging information from the client which includes detailed request information?
Flags: needinfo?(jthomas)
Bah, thanks for looking jason. Not sure what to do next.
This is the log of Marketplace app on my client side. 11:25:43.017 [model] Found app with lookup key uninput include.js:4:15843 11:25:43.019 [buttons] Install requested for Uninput キーボード include.js:4:15843 11:25:43.019 User data not available for Uninput キーボード include.js:14:8538 11:25:43.021 [buttons] Starting payment flow for Uninput キーボード include.js:4:15843 11:25:43.026 [model] Found app with lookup key uninput include.js:4:15843 11:25:43.032 [payments] Initiating transaction include.js:4:15843 11:25:43.034 [fxpay] starting purchase for product uninput include.js:4:15843 11:25:43.036 [payments] adapter: starting transaction for product uninput include.js:4:15843 11:25:43.040 [req] POSTing "https://marketplace.firefox.com/api/v2/webpay/prepare/?_user=---&dev=firefoxos&doc_type=webapp&lang=ja&limit=10&region=jp" include.js:4:15843 11:25:46.642 POST https://marketplace.firefox.com/api/v2/webpay/prepare/ [HTTP/1.1 201 CREATED 350ms] 11:25:43.455 [req] POSTed "https://marketplace.firefox.com/api/v2/webpay/prepare/?_user=---&dev=firefoxos&doc_type=webapp&lang=ja&limit=10&region=jp" include.js:4:15843 11:25:43.457 [payments] Calling fxpay with JWT: eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJhdWQiOiAibWFya2V0cGxhY2UuZmlyZWZveC5jb20iLCAiaXNzIjogIm1hcmtldHBsYWNlLmZpcmVmb3guY29tIiwgInJlcXVlc3QiOiB7ImNoYXJnZWJhY2tVUkwiOiAiaHR0cHM6Ly9tYXJrZXRwbGFjZS5maXJlZm94LmNvbS9zZXJ2aWNlcy93ZWJwYXkvY2hhcmdlYmFjayIsICJuYW1lIjogIlVuaW5wdXQgXHUzMGFkXHUzMGZjXHUzMGRjXHUzMGZjXHUzMGM5IiwgInByb2R1Y3REYXRhIjogImFkZG9uX2lkPTUwNjI0NyZidXllcl9lbWFpbD1jaGltYW50YWVhX21pcmFiaWxpcyU0MHlhaG9vLmNvLmpwJnB1YmxpY19pZD1jMjZiZmI5My1jMzliLTQ3YjctYjBhMC1mOGU5YjRkMDgxMmMmYXBwbGljYXRpb25fc2l6ZT03ODIwMDImY29udHJpYl91dWlkPTI1MWYyN2QzLTAzODgtNDczYS1iOWIxLTY5ZjgwNTVhMjM4ZSIsICJpY29ucyI6IHsiMTI4IjogImh0dHBzOi8vbWFya2V0cGxhY2UuY2RuLm1vemlsbGEubmV0L2ltZy91cGxvYWRzL2FkZG9uX2ljb25zLzUwNi81MDYyNDctMTI4LnBuZz9tb2RpZmllZD00ODAyODUyMSIsICIzMiI6ICJodHRwczovL21hcmtldHBsYWNlLmNkbi5tb3ppbGxhLm5ldC9pbWcvdXBsb2Fkcy9hZGRvbl9pY29ucy81MDYvNTA2MjQ3LTMyLnBuZz9tb2RpZmllZD00ODAyODUyMSIsICI2NCI6ICJodHRwczovL21hcmtldHBsYWNlLmNkbi5tb3ppbGxhLm5ldC9pbWcvdXBsb2Fkcy9hZGRvbl9pY29ucy81MDYvNTA2MjQ3LTY0LnBuZz9[…] include.js:4:15843 11:25:43.459 [fxpay] processing payment with mozPay using jwt eyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJhdWQiOiAibWFya2V0cGxhY2UuZmlyZWZveC5jb20iLCAiaXNzIjogIm1hcmtldHBsYWNlLmZpcmVmb3guY29tIiwgInJlcXVlc3QiOiB7ImNoYXJnZWJhY2tVUkwiOiAiaHR0cHM6Ly9tYXJrZXRwbGFjZS5maXJlZm94LmNvbS9zZXJ2aWNlcy93ZWJwYXkvY2hhcmdlYmFjayIsICJuYW1lIjogIlVuaW5wdXQgXHUzMGFkXHUzMGZjXHUzMGRjXHUzMGZjXHUzMGM5IiwgInByb2R1Y3REYXRhIjogImFkZG9uX2lkPTUwNjI0NyZidXllcl9lbWFpbD1jaGltYW50YWVhX21pcmFiaWxpcyU0MHlhaG9vLmNvLmpwJnB1YmxpY19pZD1jMjZiZmI5My1jMzliLTQ3YjctYjBhMC1mOGU5YjRkMDgxMmMmYXBwbGljYXRpb25fc2l6ZT03ODIwMDImY29udHJpYl91dWlkPTI1MWYyN2QzLTAzODgtNDczYS1iOWIxLTY5ZjgwNTVhMjM4ZSIsICJpY29ucyI6IHsiMTI4IjogImh0dHBzOi8vbWFya2V0cGxhY2UuY2RuLm1vemlsbGEubmV0L2ltZy91cGxvYWRzL2FkZG9uX2ljb25zLzUwNi81MDYyNDctMTI4LnBuZz9tb2RpZmllZD00ODAyODUyMSIsICIzMiI6ICJodHRwczovL21hcmtldHBsYWNlLmNkbi5tb3ppbGxhLm5ldC9pbWcvdXBsb2Fkcy9hZGRvbl9pY29ucy81MDYvNTA2MjQ3LTMyLnBuZz9tb2RpZmllZD00ODAyODUyMSIsICI2NCI6ICJodHRwczovL21hcmtldHBsYWNlLmNkbi5tb3ppbGxhLm5ldC9pbWcvdXBsb2Fkcy9hZGRvbl9pY29ucy81MDYvNTA2MjQ3LTY0LnBuZz9[…] include.js:4:15843 11:25:58.263 GET https://www.google-analytics.com/collect [HTTP/1.1 200 OK 15ms] 11:25:54.346 [fxpay] mozPay: received onerror(): DIALOG_CLOSED_BY_USER include.js:4:15843 11:25:54.348 [fxpay] PayPlatformError: mozPay error: DIALOG_CLOSED_BY_USER {code: DIALOG_CLOSED_BY_USER} include.js:4:15843 11:25:54.351 [payments] fxpay error: PayPlatformError: mozPay error: DIALOG_CLOSED_BY_USER {code: DIALOG_CLOSED_BY_USER} include.js:4:15843 11:25:54.372 [buttons] Purchase flow rejected for Uninput キーボード include.js:4:15843 11:25:54.375 [model] Found app with lookup key uninput include.js:4:15843 11:25:54.383 [tracking_events] Search query: uninput include.js:4:15843 11:25:54.540 [buttons] Unsuccessful install for Uninput キーボード include.js:4:15843
And, the log of System app. 11:30:59.944 GET https://marketplace.firefox.com/mozpay/ [4ms] 11:30:57.809 net-error about:neterror:1389:7001 initPage() about:neterror:1389 ee_emit() about:neterror:1127 setReady() about:neterror:1294 onL10nLoaded() about:neterror:1266 L_build() about:neterror:1267 freeze() about:neterror:1293 requestLocales() about:neterror:1298 initLocale() about:neterror:1321 initResources/<() about:neterror:1309 11:30:57.863 L10nError: "The connection to the server was reset while the page was loading." not found in en-US in about:neterror?e=nssFailure2&u=https%3A//marketplace.firefox.com/mozpay/%3Freq%3DeyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJhdWQiOiAibWFya2V0cGxhY2UuZmlyZWZveC5jb20iLCAiaXNzIjogIm1hcmtldHBsYWNlLmZpcmVmb3guY29tIiwgInJlcXVlc3QiOiB7ImNoYXJnZWJhY2tVUkwiOiAiaHR0cHM6Ly9tYXJrZXRwbGFjZS5maXJlZm94LmNvbS9zZXJ2aWNlcy93ZWJwYXkvY2hhcmdlYmFjayIsICJuYW1lIjogIlVuaW5wdXQgXHUzMGFkXHUzMGZjXHUzMGRjXHUzMGZjXHUzMGM5IiwgInByb2R1Y3REYXRhIjogImFkZG9uX2lkPTUwNjI0NyZidXllcl9lbWFpbD1jaGltYW50YWVhX21pcmFiaWxpcyU0MHlhaG9vLmNvLmpwJnB1YmxpY19pZD1jMjZiZmI5My1jMzliLTQ3YjctYjBhMC1mOGU5YjRkMDgxMmMmYXBwbGljYXRpb25fc2l6ZT03ODIwMDImY29udHJpYl91dWlkPWQwMDA5OWYxLTEyMzMtNDE2OC05N2U0LTdhYWI4ZGQ2Yzc4YSIsICJpY29ucyI6IHsiMTI4IjogImh0dHBzOi8vbWFya2V0cGxhY2UuY2RuLm1vemlsbGEubmV0L2ltZy91cGxvYWRzL2FkZG9uX2ljb25zLzUwNi81MDYyNDctMTI4LnBuZz9tb2RpZmllZD00ODAyODUyMSIsICIzMiI6ICJodHRwczovL21hcmtldHBsYWNlLmNkbi5tb3ppbGxhLm5ldC9pbWcvdXBsb2Fk[…] about:neterror:1300:2393 11:30:57.868 L10nError: "The connection to the server was reset while the page was loading." not found in en-US in about:neterror?e=nssFailure2&u=https%3A//marketplace.firefox.com/mozpay/%3Freq%3DeyJhbGciOiAiSFMyNTYiLCAidHlwIjogIkpXVCJ9.eyJhdWQiOiAibWFya2V0cGxhY2UuZmlyZWZveC5jb20iLCAiaXNzIjogIm1hcmtldHBsYWNlLmZpcmVmb3guY29tIiwgInJlcXVlc3QiOiB7ImNoYXJnZWJhY2tVUkwiOiAiaHR0cHM6Ly9tYXJrZXRwbGFjZS5maXJlZm94LmNvbS9zZXJ2aWNlcy93ZWJwYXkvY2hhcmdlYmFjayIsICJuYW1lIjogIlVuaW5wdXQgXHUzMGFkXHUzMGZjXHUzMGRjXHUzMGZjXHUzMGM5IiwgInByb2R1Y3REYXRhIjogImFkZG9uX2lkPTUwNjI0NyZidXllcl9lbWFpbD1jaGltYW50YWVhX21pcmFiaWxpcyU0MHlhaG9vLmNvLmpwJnB1YmxpY19pZD1jMjZiZmI5My1jMzliLTQ3YjctYjBhMC1mOGU5YjRkMDgxMmMmYXBwbGljYXRpb25fc2l6ZT03ODIwMDImY29udHJpYl91dWlkPWQwMDA5OWYxLTEyMzMtNDE2OC05N2U0LTdhYWI4ZGQ2Yzc4YSIsICJpY29ucyI6IHsiMTI4IjogImh0dHBzOi8vbWFya2V0cGxhY2UuY2RuLm1vemlsbGEubmV0L2ltZy91cGxvYWRzL2FkZG9uX2ljb25zLzUwNi81MDYyNDctMTI4LnBuZz9tb2RpZmllZD00ODAyODUyMSIsICIzMiI6ICJodHRwczovL21hcmtldHBsYWNlLmNkbi5tb3ppbGxhLm5ldC9pbWcvdXBsb2Fk[…] about:neterror:1300:2393
There is 2 issues. 1. An unidentified connection error. 2. Gecko L10n error. For the issue 2, it is related to gecko l10n on the client product. I'm not sure if this occures with Firefox desktop or Firefox for Android. https://dxr.mozilla.org/mozilla-central/search?q=nssFailure2&redirect=false&case=true&limit=59&offset=0 delphine, how do you think about it?
Flags: needinfo?(lebedel.delphine)
I've just reduced the descriptions of Uninput app. Now, the length of "Calling fxpay with JWT" url is shorten from 30,561 to 15,235 characters. Then, the error has been changed to "TRANS_REQUEST_FAILED". L10nError has gone now and Marketplace app doesn't crash. Log of System app: 00:07:26.578 [views][app] I AM SPARTACUS! at y<.initialize (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:66:13515) main.min.js:66:13515 00:07:26.579 [views][app] Initing app view at y<.initialize (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:66:13540) main.min.js:66:13540 00:07:26.584 [models][session] session model inited at s<.initialize (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:63:30774) main.min.js:63:30774 00:07:26.588 [models][pin] Initing PinModel at s<.initialize (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:63:30232) main.min.js:63:30232 00:07:26.590 [models][transaction] Transaction model inited at a<.initialize (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:64:567) main.min.js:64:567 00:07:26.602 [views][app] Server granted user super powers? false at y<.initialize (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:66:13976) main.min.js:66:13976 00:07:26.608 [lib][i18n] Setting locale to: ja at .initLocale (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:62:26877) main.min.js:62:26877 00:07:26.609 [lib][i18n] Requiring locale for locale: ja at .initLocale (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:62:26930) main.min.js:62:26930 00:07:26.876 [views][app] Starting Backbone.history at y<.start/< (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:66:14112) main.min.js:66:14112 00:07:26.884 [views][page] Page initialize at u<.initialize (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:65:10890) main.min.js:65:10890 00:07:26.885 [views][page] Initializing event listeners at u<.initialize (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:65:10949) main.min.js:65:10949 00:07:26.887 [views][init] Checking for JWT at i<.extractJWT (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:65:23441) main.min.js:65:23441 00:07:26.889 [views][init] Setting JWT on transaction model at i<.extractJWT (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:65:23531) main.min.js:65:23531 00:07:26.907 [models][session] loggedInUser string chimantaea_mirabilis@yahoo.co.jp at s<.watchIdentity (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:63:31628) main.min.js:63:31628 00:07:26.908 [models][session] Running navigator.mozId.watch at s<.watchIdentity (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:64:26) main.min.js:64:26 00:07:27.063 [models][session] Firing onLogin at s<.watchIdentity/i.onlogin (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:63:31757) main.min.js:63:31757 00:07:27.064 [views][page] Responding to onlogin event at u<.handlePersonaLogin (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:65:11830) main.min.js:65:11830 00:07:27.067 [lib][auth] Verifying assertion at u (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:63:2844) main.min.js:63:2844 00:07:27.068 [lib][auth] /mozpay/auth/verify at u (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:63:2914) main.min.js:63:2914 00:07:27.090 [models][session] Firing onReady at s<.watchIdentity/i.onready (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:63:31872) main.min.js:63:31872 00:07:27.091 [views][page] handlePersonReady no-op at u<.handlePersonaReady (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:65:11914) main.min.js:65:11914 00:07:28.011 [lib][auth] Verify success at u/< (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:63:2969) main.min.js:63:2969 00:07:28.034 [views][page] logged_in state changed to true at u<.handleLoginStateChange (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:65:12162) main.min.js:65:12162 00:07:28.035 [views][page] Setting up payment at u<.handleLoginStateChange (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:65:12637) main.min.js:65:12637 00:07:28.037 [models][transaction] Retrieving JWT from sessionStorage at a<.savedJWT (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:64:1419) main.min.js:64:1419 00:07:28.040 [models][transaction] Using B2G 1.4+ mcc/mnc lookup at a<.getNetworkCodes (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:64:2034) main.min.js:64:2034 00:07:28.042 [models][transaction] not applying any overrides at a<.startTransaction (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:64:806) main.min.js:64:806 00:07:28.042 [models][transaction] Retrieving JWT from sessionStorage at a<.savedJWT (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:64:1419) main.min.js:64:1419 00:07:28.043 [models][transaction] starting transaction with MCC:MNC NULL:NULL at a<.startTransaction (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:64:916) main.min.js:64:916 00:07:28.727 [views][page] XHR status 500 at u<.setUpPayment/< (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:65:14375) at et.Callbacks/l (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:61:7574) at et.Callbacks/d.fireWith (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:61:8396) at n (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:62:13141) at .send/t/< (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:62:19035) main.min.js:65:14375 u<.setUpPayment/<() main.min.js:65 et.Callbacks/l() main.min.js:61 et.Callbacks/d.fireWith() main.min.js:61 n() main.min.js:62 .send/t/<() main.min.js:62 00:07:28.728 [views][page] response status error at u<.setUpPayment/< (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:65:14406) at et.Callbacks/l (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:61:7574) at et.Callbacks/d.fireWith (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:61:8396) at n (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:62:13141) at .send/t/< (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:62:19035) main.min.js:65:14406 u<.setUpPayment/<() main.min.js:65 et.Callbacks/l() main.min.js:61 et.Callbacks/d.fireWith() main.min.js:61 n() main.min.js:62 .send/t/<() main.min.js:62 00:07:28.748 [utils] could not find error_code in response: <!DOCTYPE html> <html LANG="" dir=""> <head> <meta content="text/html; charset=UTF-8" http-equiv="Content-Type"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1"> <meta name="apple-mobile-web-app-capable" content="yes"> <title>何か問題が発生しました。</title> <link rel="stylesheet" href="https://marketplace.cdn.mozilla.net/mozpay/spa/css/spartacus.css?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1"> </head> <body class="error-page"> <h1>何か問題が発生しました。</h1> <p>リクエストの処理中に問題が発生しました。</p> <p>また後で試してください。</p> </body> </html> at p.errorCodeFromXhr (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:62:30518) main.min.js:62:30518 00:07:28.762 [views][error] {"cancelModifier":"cancel","cancelText":"キャンセル","ctaText":"OK","errorCode":"TRANS_REQUEST_FAILED","heading":"エラー","msg":"予期せぬ問題が発生しました。","showCancel":true,"showCta":false} at a<.render (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:66:12452) main.min.js:66:12452 00:07:28.765 [views][error] Rendering Error template at a<.render (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:66:12906) main.min.js:66:12906 00:07:28.782 [views][base] Replacing $el with rendered content at c<.renderTemplate (https://marketplace.cdn.mozilla.net/mozpay/spa/js/main.min.js?bust=3a5bf2207eb6a5a4c67bb477879c9a13a07ad1d1:65:10073) main.min.js:65:10073
Hi there, thanks for need info'ing me but this is not my area of expertise. No idea who could help TBH :/
Flags: needinfo?(lebedel.delphine)
Stas: are you able to help with this please?
Flags: needinfo?(stas)
(In reply to krupa raj[:krupa] from comment #1) > 08-20 13:23:02.985 W/GeckoConsole( 211): Content JS WARN: L10nError: "The > connection to the server was reset while the page was loading." not found in > en-US in > about:neterror?e=nssFailure2&u=https%3A//marketplace.firefox.com/mozpay/ This looks like something is trying to get the translation for the identifier "The connection to the server was reset while the page was loading." I can't find anything like that in Gaia, though. I tried this on 2.5 and the L10nError is gone, but TRANS_REQUEST_FAILED reproduced and the app crashed. So maybe the L10nError is just a side-effect of something else that's visible on v2.2?
Flags: needinfo?(stas)
Thanks, Stas. L10nError will related to side effect of the requested url length (too long), and occures inside gecko on client side. IMO, this L10nError should be separated to this bug. BTW, the symptom is changed to "XHR error status 500" internal server error. 00:07:28.043 [models][transaction] starting transaction with MCC:MNC NULL:NULL 00:07:28.727 [views][page] XHR status 500 00:07:28.728 [views][page] response status error 00:07:28.748 [utils] could not find error_code in response: ... krupa, could you please check again?
Flags: needinfo?(krupa.mozbugs)
Assignee: nobody → kumar.mcmillan
Flags: needinfo?(krupa.mozbugs)
Here is a proposed patch to fix the 500 error on the Webpay server: https://github.com/mozilla/webpay/pull/641 I'm not sure what 'connection to the server was reset' is about. Comment #10 makes me think it was to do with a long URL when the JWT (a base 64 encoded string) is too long but that should yield a 414 status code, not a reset a connection. We fixed a bug for this recently by increasing the max URI length in nginx. Maybe it's still too short? Jason, what is the current max at? The reason the JWTs are so long is because Marketplace includes localizations for all supported locales. Also, we are stuck with transmitting JWTs as GET parameters because of poorly designed client code (oops).
Flags: needinfo?(jthomas)
large_client_header_buffers is configured to 32K (4x the default). Do we need to increase this? What value do you think this needs to be so that we don't encounter this in the future?
Flags: needinfo?(jthomas)
That makes sense because the description length was 30,561 before, not counting the rest. Could we up it to 256K without adverse effects? I don't know at what limit this would become a DoS'ing concern. We do need to come up with a better fix for this but in the meantime there could be a lot of localizations jammed in there.
Flags: needinfo?(jthomas)
I've bumped the values to 256K on -dev https://github.com/mozilla-services/svcops-puppet/commit/e2e1bee650e817fb78b619fefbc14a418ab2845b Our client timeout values are set reasonably low at 60 seconds so I am not too concerned about slow http attacks. These type of attacks are hard to mitigate to begin with and if we run into issues we can re-evaluate the client header size or reduce the client timeout.
Flags: needinfo?(jthomas)
Thanks, Jason. The patch from https://github.com/mozilla/webpay/pull/641 was deployed to production earlier today so this should be fixed now.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2015-09-08
You need to log in before you can comment on or make changes to this bug.