问:
How do I get rid of the server blocks in the AjaxControlToolkit CSS?

We've been using the AjaxControlToolkit for many years, but just recently, a security scan flagged a "source code leakage" in some CSS returned by WebResource.axd. Specifically, it contained <%= %> server blocks.

Most of the CSS is normal, but the issue is with the following two CSS selectors:

.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_inner

.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_tab

These are from the AjaxControlToolkit. Both of them have a <%=WebResource()%> value. Those server blocks were never replaced, so not only is the scan flagging it, but no background image is shown for elements that fit those specific selectors.

Here is the CSS:

.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_inner{
    background-image:url('<%=WebResource(""AjaxControlToolkit.Images.Tabs.Bottom-ActiveLeft.gif"")%>')
}
.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_tab{
    background-image:url('<%=WebResource(""AjaxControlToolkit.Images.Tabs.Bottom-Active.gif"")%>')
}
```
<p>We tried upgrading AjaxControlToolkit to the latest version (20.1.0) with NuGet. Unfortunately, the issue still exists. For all I know, it's not an AjaxControlToolkit issue at all. I tested it in both Chrome and Firefox and it shows up in both. The site is deployed with IIS.</p>
<p>I've never seen this before. Am I doing something wrong on my end? Let me know if you need more information.</p>
<p>Here is the full CSS file:</p>
<pre class="lang-css prettyprint-override"><code>.ajax__slider_h_rail{
    background-image:url('WebResource.axd?d=MWQb-AddVgEub29OKU5neWhsr_bbaCUSlMt7RGBDryMDZNrxapELWTbMAVt0PMghdnewXMkcUdalSiQVqhsD84Y1g-jfEBb1IrIkOI8A4z1mxZ9ZOcngkFktTDenserTzxtD3qUrbUilso8fhF0_Lx7MULJvhPEILRy1ydYwWqxKSQ4Y0&t=637636889360000000')
}
.ajax__slider_v_rail{
    background-image:url('WebResource.axd?d=24wSz0A1HIeJF7SFeCO3eM7o6l5-DKE9JdOuAwz0wew5A8eH7lxB5y--qJaAtzFt1S3BwjqhsIM_DSYX8Klcxdp35nG3_iE9xEtImmrzdhsqo9sRArXLlP5iwdM2DkW6-rfpvhIlN_9IrhzRuoGA5E__44uIaMzdD_eUtOh4JtrfQ8Lb0&t=637636889360000000')
}
.ajax__calendar_prev{
    background-image:url('WebResource.axd?d=5kK5ygYcM40mkvFpjJXd3mlRMqJsEJrmyukTlhPIYkC3jAsgPossLl8gLJ8ELMBzjmekaDbrpLdd_IoQLk8R8Z-Y_JLE9s8Ji-NK8aE74OV6J8JH-uWv8GRBvHxKse5Wt0-4rIDUuBAA55aAC3Sta5Q1yk_30EKw1aYH3i_CeAnXgb_O0&t=637636889360000000')
}
.ajax__calendar_next{
    background-image:url('WebResource.axd?d=M_aOGfrxSbijM7rzYnYbLHdyeCch7V6lzAKdFzWcXZIlAQ81gTFseA9GXbnFHrohBdx6ywbaPTWf1TKVVRI5FWwpDmosBPSbtayxVOpPwmwzEPNOu2GpHqpkCt8UxEkprzmAc6cjVH-adF9TA7jXItpFP2UdL-2L-4uLPsKfTN03S4AT0&t=637636889360000000')
}
.ajax__dropdown_arrow_image{
    background-image:url('WebResource.axd?d=qIUne3XIEulKejz4iY2RgECzTJim7EU1CCrCtvd6oHTlB0STmXa-r6zvCjYWifjDkB3bdmXTKuAnEMOqo5NUysYOCYlzq-O-F0OPi3GamngU78zl11sFqsyKc6zD8imyfYULwSyHC54-pwX8N3vWwTKuDi-7o5Yzu5OjHC57uSMYFQ8V0&t=637636889360000000')
}
.ajax__balloon_popup .rect{
    background-image:url('WebResource.axd?d=TnyHp-NSKO-r0mxzI7Gsuo1do7IQc9ZW6QPlrIgZauAb-615BRcMNnlbSjQ3LToH6AhsKT8odAYUd9Kbfct2DIfgkF-EB48IFbuK4JTqHVTAm67cmSHpbYYrLoxoe8TcnPKGXWzkgLp0pSeO5ns07mfyGkUoX8daA_3d_2VjiwPyXsbN0&t=637636889360000000') !important;
    background-image:url('WebResource.axd?d=sS8dLhNxgLMNf5x0uTfVB46IG6bue11zEvlcMoVnATvEAQ80a3V2iFrlPIMPnCKp8b2T1wd3JUidqNnYmkrE2-uNryY8PESki5zTvPfZctYihqWUJz3qIVrvre-RgaECS9MqL3HjwpjsN7D3q11HY2V1cZgOIa_6SVliwgZYbn3Encba0&t=637636889360000000')
}
.ajax__balloon_popup .cloud{
    background-image:url('WebResource.axd?d=Z0jZrTOMIGXrpB1Y3GQpwK1C69bQKHg0a4odU6DnQl2vIXpmL9T1Ku1GaVADeZsQnxnUln3XRaBXVh8KQ7SRmGe3GJnV0gAsBChs-Sm4EQoQMrGq5IDL2Wn5g-1JFierShBciD_P0EFv4QFNSYdZvC45eIoqbW3HC-N7ba9EusM8gZSN0&t=637636889360000000') !important;
    background-image:url('WebResource.axd?d=GqJUQt09QeEr7SI0Db9T8T5Wk4oJ8W-YplgqASfD2A4fcnXl-yMyv7OcPhG-6L_vXMnHvidsAggcqJYJ0TSfRaSnSX04eJHNgRTWy3ZsWfS8ZfMyidest74Lsum65vvBe55WFJIwmoSqdHjnnu6EBrP60LcRIyQXFHuCz7XJGMo7qHou0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header{
    background-image:url('WebResource.axd?d=6e2ZtHCzFnq05qqUR0bA9-iGoxisZsuw4WOhKPRLBmaRWMu7mxiofLtx_g05E8HYFt7McyjtyRw_lcW1iaZGBq5gwWWBG2ZRi6pjDPaY-zr6jcIgFhC8hORHo2G0H_4qVXfjA5eI2nXxEQ4TbrugVaFbXEo1&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header .ajax__tab_outer{
    background-image:url('WebResource.axd?d=LEox7ScSnZf6y-CY8vNNFkqn7iGfx0WI_z47Dkkq_6JT47ovSb3SPK-w0vzL0w5Hg015k3dtvgg_rK1TdE4Yq0obTjEACMcEUnHE2hgIcZfsxMSVzDiGELWo4vPxwpLkUr4S0B0NOV5PhZS_0kN6IeRTbXY1&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header .ajax__tab_inner{
    background-image:url('WebResource.axd?d=4LYaAyAcbvEYoVZdgOWu-3b8TPYuACM677CyoqA6v6w32pAwLQactv1SnJ5QFXbk9mrZw9x_bgrsiTpKJQ2LZCM3me0n-aD0jZfanx1U-zxzzDQ7Jhhe4rBZxJ-s4OYsARquGv09MIf9F7uI2LpfolovszQ1&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header .ajax__tab_tab{
    background-image:url('WebResource.axd?d=RU3ATyHNf_6u1-MD1LFdS4LrLUDrxKQny0CnNfyP74rypmqbTobV5meB6MZih9dwRUQ5-oXApB2caruP8iTNfAsNobaSMi7iFqdv_9uOM97QT7ilnp_7HYqWVp5FHf2zmY2qDnc8-wklBCM8ssO_mhVKr3fuO7Uf7I1u8W89vCbwN4yO0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header .ajax__tab_hover .ajax__tab_outer{
    background-image:url('WebResource.axd?d=tZkOWbOwsPmoOoHhH2yxrTHzKN0l24vEmx9jt7q73N5cu1XRGt9EQLZ8EuPot61iN44yWksBWnATfQZ1uFqZaMTRRZaqWNxogdhrADDfVeyzLbqMjCZMX3Fs7XbnUTzTfAjt_P7Wx_d7WExtfgAaG5iSo0KECljnSYs6rcW6_FMs8pOR0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header .ajax__tab_hover .ajax__tab_inner{
    background-image:url('WebResource.axd?d=meCLRp1ez5NrNz5O-98gzlhYj1Wckg2-lacclqzCTDjOKrn73wwQ_dhjgh0QNsA8FeCM-k0Z6hRHtdFY0-39hakY-WQlzz-AGwVv1pv2hAW-6US-EVbVqHGHEpDSjKxxN0PLoxXb15n8ytaD0k4mxmRxL_I7PStEbBBqEVBjpVVSJXQq0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header .ajax__tab_hover .ajax__tab_tab{
    background-image:url('WebResource.axd?d=LHkncE13mfj9elJDSa7wcZnyRGAOeojyjv8-TMusVrOKUkw7ELE31Ts8xw1BiLLITljDxjdydaEL5vfi36mzqmU088atWlL46QVLIdN7G8y7A_GLTTSQdgevPBL4iPqTcRSbgh8ckflKqibYmiApdQFC9Jk1&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header .ajax__tab_active .ajax__tab_outer{
    background-image:url('WebResource.axd?d=benZBUyHBr2f2lGrrGp7xZX9XExXm6L0a5mFlK2H8I24Uukiv7_lo3tRC5oz8_vNC4ctoSO1LHIYs0hJLGLKM9amQUO8lbyhAcLSlW_vdiSpq2ylPm6O6K72o3VcztTemBEld80MXL0Db8wjvfctGA6jVXuK3Pdx7PgY30uZgE7UBd7A0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header .ajax__tab_active .ajax__tab_inner{
    background-image:url('WebResource.axd?d=ef5pPc_1hMf35IY_Mn7cnJtQ6Q2Ixc3kEtcU3rJTVqZ8Wo_85-wL2B9mhOX1CS6hdedxWvJhUhcfbsVGNmPO3eQVmqFe0Fzyt4E2MnkvXw5-sqf9HDDskcHrziFecnlvq0Pew1busGr-akaJqgpCCJqpPNW6ahAtIbMoHlB8o89C6VBb0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header .ajax__tab_active .ajax__tab_tab{
    background-image:url('WebResource.axd?d=eOkTcjBi4Qz-Vg96RfWwydldznIeN9v4d3qPb4K5Zx3NQePeB3Gk09JQO6V9xCHyZrD1Jttha546aHjRUSRWKMKmdSd5xWSkw7KVShT929uRd7bHSTrWHxJoAPctZIMcukWtqFovyfACu4Fgc-_TLkbixOo1&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalleft{
    background-image:url('WebResource.axd?d=6e2ZtHCzFnq05qqUR0bA9-iGoxisZsuw4WOhKPRLBmaRWMu7mxiofLtx_g05E8HYFt7McyjtyRw_lcW1iaZGBq5gwWWBG2ZRi6pjDPaY-zr6jcIgFhC8hORHo2G0H_4qVXfjA5eI2nXxEQ4TbrugVaFbXEo1&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_outer{
    background-image:url('WebResource.axd?d=ZP3uJrgVj0AsIkquS-BAJSGafCG4dQ3aefC7Zp6bgb-RQEXrFgkyaJGO6OgYhFSShBSGXzRLx6_zP1jrcHTsdqjgrbrf_4WqcnymvJJJ1PZ86c2YQMirDGxfsX2QME8qC-dKWrOM-u9yPzXg6sF753bldf7zgNa5IBH0y6u3X7nq5VZ60&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_inner{
    background-image:url('WebResource.axd?d=nfNBtpsmMMVTBLsbBVVIzC99nURrcJnYIn5BHXV9JBWjiageXtuupa-FyXyIutMMxvlVVgnBFMnW-WDOEd6CqUDB53wDNiFfa-PSb1O5f-JpH2LK0pC8gEz8DpcPhoislagXOmhcVUvHgvEbJXbO9xGAitrJKtEYDQN4M0qP3jYpR44n0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_tab{
    background-image:url('WebResource.axd?d=Zgf8za9UuIYPUP5h6j90JsTLJZuuN4BEi1AN_gd--cItttOka0thEOykMwcFY6wXuLeSYPeNrjbJ1WCLKy79Su-MD7Ck_7z1CL8tEN0QMBWN-SQh0kgBbUXf0oeKrPnVQQvtv8Mu5u-3NqtOWnwOLa_qbMTqco4LQfiZmd04GWUk1i8_0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_hover .ajax__tab_outer{
    background-image:url('WebResource.axd?d=SUUAH9M-1YYivRxmxM-epR-VXdbYNUA4NB20rv5VfM94hZ9Fr8molOu1uXjtru6kDQBxBLco1unmudNtG7TkLfRE9JIQKWHTqXpjwKd1o-Lcw9_dnPByCGjANbkxb3bQBG2y1BZR40Itm6XxhaYp_5vdgOKl552ZN1xkit2gHjgqvbmH0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_hover .ajax__tab_inner{
    background-image:url('WebResource.axd?d=Bniw9D4UmOeHIeavu5qf8NZgn1wbS166I1ghbY7bFwUUmvwXUNDdtWw3u8PXjBS7__iKYU5mHLWOoIYQQLW2rH6BQJVVDvlHT-w6QndYy_QnQjttE_Wz3R5-_0o2Q1iOWhOJh50lZ2iM4MFNnj3nEUXHSxQCgli0qellyRNoCzHp90Fz0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_hover .ajax__tab_tab{
    background-image:url('WebResource.axd?d=INrqMYZQL29gvVv2AQRn02LcPOdnLfixjN9VsThpBeaoNZnBhCLcCSoA4JtTxNBz4Wv8vV2Ot0Y_cvcQnIruqJUKK86jaBT60U4P7e0ThUXq1wN5dusAofOvUqC4lamGTJoXx9_0ZLi8VhbOcb4P_3Ki9nCw5UPOeD1iRv1HAE_B-1240&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_active .ajax__tab_outer{
    background-image:url('WebResource.axd?d=RD1dsTWqAosKehAVdBaI8KAwRTbgAkr8P9qyuW24a4EYoWnoLnHmFiIhKApbWSiHpZNcw2AecmIqhvnvHJrjgJzzdP2jJ0nl33p977jmzaOFvQ5dSVR15uDPBFzuuRrPjtlaqJ48a192Z5uxLfxskDJ63PQyttWwTlxaHJizWZVXcWOe0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_active .ajax__tab_inner{
    background-image:url('WebResource.axd?d=eD02UK_4rGpoE9OdAxm7y8fPgtiXIm7Ss8D3yMFbH_6L5gjPKNBvhw9cRKV87EyZy3_PnM9B13w659W0ZPFQoazvmcoouygK_QPXU1IqiU2tOYnBmpJ7pJcmbsjBScXESK1VPi48x7csVBheSxE_qLV3zKeAM0SF_4Us6rjGgCCWlLmI0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_active .ajax__tab_tab{
    background-image:url('WebResource.axd?d=1omOvcdIwF9ZFFS5gNJKhahOhyfgkz0VhajhCDLpRghlIH02NeT4_c1TxebaXepFDZ4JexJfUpVCmUix4U0kTVHThyaiPmJODzs8sMRrLjMLYMgo5s3JiDUbh0xWXO_DxFyeIGgU4WMExRgN_W1qfw-umlQ79CP3uXCcUtk76xDaCBF90&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalright{
    background-image:url('WebResource.axd?d=6e2ZtHCzFnq05qqUR0bA9-iGoxisZsuw4WOhKPRLBmaRWMu7mxiofLtx_g05E8HYFt7McyjtyRw_lcW1iaZGBq5gwWWBG2ZRi6pjDPaY-zr6jcIgFhC8hORHo2G0H_4qVXfjA5eI2nXxEQ4TbrugVaFbXEo1&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_outer{
    background-image:url('WebResource.axd?d=PORbDXIghhI5Zz6rGoRTvOaR85ZlMElBXXzCRX80LjhL_6Z4EtBe508jlW_7rN5WhBcK9zCpGZJBj7LRN-4_IJHWHgbBx05tkuNANcUwWq5xb5o12y2VS9_CSH1EDzXpuldJ0l3tIMwr4ukAYsAWyJza5v3zQUQfqxRgeDKyiloywmfm0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_inner{
    background-image:url('WebResource.axd?d=ApXwEpLesM2zc9TogLMOH7VNVSI-c2bzmkNbWZ4C2LiP5VSu2GQ9eg2ugenL-89eQGNe0yUP3vVaONAWIkTLpbOaDCaWDLy0EFYKguwhdpimMzr2d44EaEmKeICH0UzV1FlXd3eeMmkFS6cCM0IQWlAVZu7RHJy8Das1YnHgTXvRWAzv0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_tab{
    background-image:url('WebResource.axd?d=ZAREtG6tsoP8qCb38lsajjx0BGfcol5mt4o2atJCPktpCPrxIYPPd5ihorE0CYUdBQ2OJ9KEUE7K2HcDHnGpWE4zHiKBUFgdJRDflOcryEmhqi-oiTVERt-XZIthbUDbVOtQKEDB96b7McaWhlaZ9fLcquOjIICnZ4GCGVjbD0XPjZg40&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_hover .ajax__tab_outer{
    background-image:url('WebResource.axd?d=oSxN9eXmevs2zBL7YqMdC7bA3TVQAMis97S3y44urumnxqb69kA4MAe4UUovdRJ6mGUVK9-ZiDj_SpiwRqDgk6NPfrVMtLUILduURH36E68YVuElHmuNnZ_JvrNoawkEP6MAiPOE9PhAfiU6fcbrr2ya2zp1VMHnrNNLz0MB8TISIuWN0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_hover .ajax__tab_inner{
    background-image:url('WebResource.axd?d=bTRseJ-y475XCfb_tRAvmN95PUwW_ZPYsh5ZXtkP7c5GUkOj3gItvU75ru7rfR7ITaXXwS_eefaJop9H8_g9vjVEFNPDXhz5jzJF3aR1ibCwacSYtmkwGYxfIkpeNwoEc2OJ4tBEV3dsqo7ArAB48jJGgLVnkff_wJAANwHKx_w5SGey0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_hover .ajax__tab_tab{
    background-image:url('WebResource.axd?d=bTRseJ-y475XCfb_tRAvmN95PUwW_ZPYsh5ZXtkP7c5GUkOj3gItvU75ru7rfR7ITaXXwS_eefaJop9H8_g9vjVEFNPDXhz5jzJF3aR1ibCwacSYtmkwGYxfIkpeNwoEc2OJ4tBEV3dsqo7ArAB48jJGgLVnkff_wJAANwHKx_w5SGey0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_active .ajax__tab_outer{
    background-image:url('WebResource.axd?d=FJ8bOv6vJHEZr25tDOLMngawM57INgv__2foXRuwyL_Aqm93NTFQAf7weo240xzIDoJYqS6eqOct7RoeRFSRAoqq-2c81Aa5xQ4O-t-X4kKQNP_rWWvYTcJNu-zCA4fynmgLhYIo8d2pNWXydwL-OLaETdbXz_XGNtVGPyF6Qy7m6Hmc6FK1EOKl-1ijic95F_7g-A2&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_active .ajax__tab_inner{
    background-image:url('WebResource.axd?d=I1oS1Zedf5KdYhMKkOtbfHlvyBvMcN8ki68XyYDHXgkLNAMmXsdfY9hnDXlILZ6TA9qQ4mOah5y7O6jc1ZDpUiwv27V2uYvdu4ASEzQBsiJCCa8STOPh2Naff-RUFpqeEnvHDoRQAqwas0Xnw_OVIFDpGShRvqH-huAweMf_LA7rw7Ua0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_active .ajax__tab_tab{
    background-image:url('WebResource.axd?d=PnargFOLVuQ2_CNHQdIbGY-rn1EkUB2_IKorrM4ULBoXAVklpng32zFhXX2-e6PsLf3dc80vByBsaMoEWja5vJEA7x7YC31bpC_4eGdMXRblMFmMJDhK7UGv9Q_-IaeKJNjBy-CdxBQQjUU1yYNwDufINYNzp0JNA9TlJgV4rvjzv_wX0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_bottom{
    background-image:url('WebResource.axd?d=6e2ZtHCzFnq05qqUR0bA9-iGoxisZsuw4WOhKPRLBmaRWMu7mxiofLtx_g05E8HYFt7McyjtyRw_lcW1iaZGBq5gwWWBG2ZRi6pjDPaY-zr6jcIgFhC8hORHo2G0H_4qVXfjA5eI2nXxEQ4TbrugVaFbXEo1&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_outer{
    background-image:url('WebResource.axd?d=Ivw4k-SecqyboL9y9nDqbwvpbnS5Df9bDpwY-x1wXdCoMKFjqbDkYdqBgPDe4Pdpl4dbHeUggC5fIiiugkNj4LhlQSVjIUZlwQf-M0Vim5qQyFZpW6aya8_SjrEE_s41xuH5HmFWgGK838Hx4l1I1LF4uu6z_Yo7mMemAxLH9actapb40&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_inner{
    background-image:url('WebResource.axd?d=MflpIqHv2fCGmJw0-LCBxX6gdqfwIFlYHqkzpTBiRXpl3E0Bf25vqAUUK5sndi631VVEmgax_VgVXqYy5-cZQc6N7iMXUcEFkAnIsZcSuwFimlfxjYaJ2Eg3YihEs4neJPjsGiMP7E87qulWpla4D5sUF7qI-X4CA7NxeGtRu08nBbFm0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_tab{
    background-image:url('WebResource.axd?d=hQm1lj1sAudH4FfkC4XQ8_ZeE0FXKs-AnUxVP97y8CvvOgs5jrxFGML92NfDFUbUKLq8vnJRxa9mGwBVKm36AP4cwMVGthd2VFYwLFBsqkzgTCHJ0uuIMnY-WTYQQRpdYdi4OOE2TREg_dfkx66CcQMgmHE1&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_hover .ajax__tab_outer{
    background-image:url('WebResource.axd?d=LxNmNihhn9U6YPlIS-MOR5zNScSNxNMjKxpxvexHoWGW-vJX2kC7cx7Fs4_PGF6zGXXY-UiebpaYgKlcjRwu-GA6VOeDI-_RFNAZ_qLTOzYhYBkfysuKlH_qJPkN2kF2qLwA3DsLngLkz-Ln-3m16Zr8n6x7pVg8OLYODbqsgqS_UUV10&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_hover .ajax__tab_inner{
    background-image:url('WebResource.axd?d=DiFl4rC8zXAC2Za-Ezy9KaAdzx-PCrTrEZt0sl6h8Svxq43LICJOGyIHjaP_CH2W6omnG1GPln0KnrH79PSR4QqaFnxqT5NtZE4wQe6frBOgf9wJIXJqEDg-sYVleF_CqDLd6EPAaIlCraLFhfVYr3_t-rBVKOdJ4kK-hUI4NCwVPjNZ0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_hover .ajax__tab_tab{
    background-image:url('WebResource.axd?d=ddUUiTjm3boygsPnxV7MZ-pKNQya56irzemTe71sJz17nznQZ5RUWEqVnmGNiHC6YVx4Lj2JS6_nGDbtCz3SqalfXJPlvSgkqaVyz1_w1qMupbh-1XOzh05ljYWgpx302uGzaYaIPw_SfATzaFrzrWbtNNj9ZsjWApWc1MucugECs2x60&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_outer{
    background-image:url('WebResource.axd?d=woDyxZgg1-nmT4Ctun_kJAoKqqhcqYoS7Rvym78HHG0J4P7TPN5emw0sBim7KpGqfz3OMQK9rL91Jaw57sWGTL3t3Tq_mCaMyr4F-D1Pap0iNVjclHME5shIcKnHXUIE5dPltySLsoTQWrPGi1JbkXIph0WgE3rTIWERLnv7jN7V_5od0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_inner{
    background-image:url('<%=WebResource(""AjaxControlToolkit.Images.Tabs.Bottom-ActiveLeft.gif"")%>')
}
.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_tab{
    background-image:url('<%=WebResource(""AjaxControlToolkit.Images.Tabs.Bottom-Active.gif"")%>')
}
.ajax__multi_slider_default .outer_rail_vertical{
    background-image:url('WebResource.axd?d=ta0LCbf2X4cudR1EWs16VbWZmk2CN6NANT6hDFtc7XtCWwwvPJ2kIoevGaO5FLYhS7cD6Rrqi8RuGroobvMrfZpb_9UflTW1HSU_erxtuQ4HJkYFwOVEuXubwC8nSO1k_z8QQ6bdE3ivmY5UD88s_FJD5OySv2xZK19s2yR86hxtbfwSzkjKrw7QsemISo2oTBVixQ2&t=637636889360000000')
}
.ajax__multi_slider_default .inner_rail_vertical{
    background-image:url('WebResource.axd?d=K9SX19XqTp5uohdfqPLOhTGPUIwUkY2EbW9oHchXno81pJjflpvlxp-22Fruinbnxn5L0lJGtfTiwhZpbYs4agCL2iyj8ZeGrc_XJiQPKY_NF9JA6M0JQ4ntQ5TAYLMsHlUFBtggv6b1MD0-Tgm3PYhik9LyaedV5TdG8QrXV0QwEqTO-crSqDzvxNYIenVIEaLEkg2&t=637636889360000000')
}
.ajax__multi_slider_default .inner_rail_horizontal{
    background-image:url('WebResource.axd?d=9Hc3mOxW9wnfqj-dkPwJJKdlGZ7AuuV17Uadw1U59By-yv0_cGGEwEP7ql9lYuVbRqm8TNxumbm8pW-s3jlKGlC94E6ZZ42vtIhTZnJsF-xprlIaXZkanjwIw66Lyxr38OLGMVraKa0SdOWINmYoXySjnSGsKQeDS3Ys5dcoUsSSRVJeHEYOv4MvkVaVRUwBPsSa0w2&t=637636889360000000')
}
.ajax__multi_slider_default .outer_rail_horizontal{
    background-image:url('WebResource.axd?d=_T53n7S1F4zH9RBpuCRKJxptW7weejxnmXCbVCUQ15EJOl4j9ucu6y3Uav0YTR8Z_MYcmcyGaXlSRqqOFW_evn8vF3x6-lDFJO-KBCh_swyRUck6DHS-KKpRf0PcBV2hZK6lCM1YlJNDnweriedqfPZ3-9SQ8IOYdRsDLQJFymPrc1DbPnc4JkBPPJ1BCgQzXSnDpA2&t=637636889360000000')
}
.ajax__multi_slider_default .handle_horizontal{
    background-image:url('WebResource.axd?d=jRji05Eo_vTWu0ZQwRxH0ww-BJzgW31RuQlix3wKVO523pGm53rkYABwXilfAMl1RzFvj52f7oi5O1suTGPe1MXUem_IBJegY3OfPDfFzNYiO0XarE375Hu5a6E9VM9ttP456bGu4siIX4OyZ0kj7dqUQ5O1e35T97juA5RHAF-4L6xqhtbxJs1hzZLYP1pUhycP-w2&t=637636889360000000')
}
.ajax__multi_slider_default .handle_horizontal_hover{
    background-image:url('WebResource.axd?d=AuSmJNkeIlE-_eIHmiIWf3Og7c95F6qqNDTbpYgeN4cVcBPnwTja5HoP4ELYxl1-Yy92l8feIL8_XoPT_9pG82_EcPh6GnFKbEKFgYnH1QeMmTpObD8Lk1ghrHyr5liLGUtLMul5KOvriwkGmv0hwo7XGkCo-LpTxIcjhuUB0RlCVye2puiSfSeNTpBZANmgU3rdEA2&t=637636889360000000')
}
.ajax__multi_slider_default .handle_horizontal_down{
    background-image:url('WebResource.axd?d=ZZBEyI8yE464aw-JO8pXPhr3ttSssj8SoeivcqHmQRKENkLGg1J-Rd_WYygJQ3461aBHAO-tm-2tS9tVMouYw9hOQZLy1jmZYlOxluLLfhh9ztDvdRPSYd43DM_xpndpm2UVjhiwYWskn0t5zkpWbJB369BwA6F1Q023qxPvULpwWCzx-cnub47tfreP2hQDzShQYg2&t=637636889360000000')
}
.ajax__multi_slider_default .handle_vertical{
    background-image:url('WebResource.axd?d=QcTHXblcsbz6Av4wYIy7mkfSD1nc9P0caSh5aKs-4E73bLrZ4jzYy5_RMvTEpDfnRfpDVd3H--VvrLI03cgEtnkTgr_jY9kaukrE1TNDSFLtDz7U0YFGziXb66fP6WCkDWKAifkYQOZ02gD8sEmclLV_oIgjLSumQa-teTShozYTQ4qXLh0dg9AgZZ-XElfnCLmuVg2&t=637636889360000000')
}
.ajax__multi_slider_default .handle_vertical_hover{
    background-image:url('WebResource.axd?d=mCj94QPFNrIRJljvS2ew3pJraj4RsCJldJByUzh7H-tK4IJrROVJhWej6RCWiURrXKbS0rxQEZn0d3zF-zOjtz463ERTwivMA54CkqxC_uTPoaF-iFznRkcDDcvwnsB98-y6nQYD_5UPflFvk_EHDoJtnF_AIPqjUKTaGe4AXNxl0vniq3a-mWzimA-aRcvyN4KXig2&t=637636889360000000')
}
.ajax__multi_slider_default .handle_vertical_down{
    background-image:url('WebResource.axd?d=Os6tz_oz54kRxvLC1U84hpx0Sha3QS6LqJ5h008MicMc6U94wY6eMW5C8jnh0wm0vaU7FhIiyGQ2lMvnKGkD7nn5eKDmPHqUV07QVHTkj0TMhd_irLMySBVOkqwrgnlaITDDJ7DIyXBWsWzPLt8dzJ9TdFI_V5Hq4tcFYLmR16OnH-vQxV0J3RryMQ7imD9f-VoVFg2&t=637636889360000000')
}
.ajax__combobox_buttoncontainer button{
    background-image:url('WebResource.axd?d=KUv9iqDMwUEZCo7_pETQ0sYfFpPomDFyWvIz6r6Sb-pGiv6uDfh1h9tLVzCNZ5km5e6CB_bRALHglCb8iynU9hUp4DTNVOq2Wudsi44ou5_KnFe1GTMyryuF0Lu0tmDvGrCIsj9YwqsAmqHx4ApD3d2wENLEXIxzxHg2tveq0JbhNWVa0&t=637636889360000000')
}
.ajax__htmleditor_attachedpopup_default td.ajax__htmleditor_popup_bgibutton{
    background-image:url('WebResource.axd?d=C95B_uQUL_QLVf9JzCw9Wha3Opx8-NrU0-YUVBic_n_I2yg5NlNsuhG346zhhiSBg18Vv5GUI34Fnpm1libi64LPdeyYOJHZpyoUpdWDNFjaYwRU2sACTzJH6j7zbIhdxRLPVE8nWE6HcgkolNHiUXxbSFU6Uq-Me0TKVjpRJnGiL2HW0&t=637636889360000000')
}
.ajax__html_editor_extender_button{
    background-image:url('WebResource.axd?d=SlaRVso1b0cuOQ9KqzYpwWhumbI_ItZNf9TAzfW32NoiClRpOpqV9XM4KsHZ9WLVrKUOT1boXX0_Yglt0hfZOwiOjqjAg1wgd69yYFB8RfYnDT07DYLc4JTFZ14Oph7e1DBUyAKOrof4DtQOmzQ5AomyDnCousMxkcybKwbIhGvnz3jV0&t=637636889360000000')
}
.ajax__html_editor_extender_separator{
    background-image:url('WebResource.axd?d=SlaRVso1b0cuOQ9KqzYpwWhumbI_ItZNf9TAzfW32NoiClRpOpqV9XM4KsHZ9WLVrKUOT1boXX0_Yglt0hfZOwiOjqjAg1wgd69yYFB8RfYnDT07DYLc4JTFZ14Oph7e1DBUyAKOrof4DtQOmzQ5AomyDnCousMxkcybKwbIhGvnz3jV0&t=637636889360000000')
}
</code>```

Body:
We've been using the AjaxControlToolkit for many years, but just recently, a security scan flagged a "source code leakage" in some CSS returned by WebResource.axd. Specifically, it contained <%= %> server blocks.

Most of the CSS is normal, but the issue is with the following two CSS selectors:

.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_inner

.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_tab

These are from the AjaxControlToolkit. Both of them have a <%=WebResource()%> value. Those server blocks were never replaced, so not only is the scan flagging it, but no background image is shown for elements that fit those specific selectors.

Here is the CSS:

.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_inner{
    background-image:url('<%=WebResource(""AjaxControlToolkit.Images.Tabs.Bottom-ActiveLeft.gif"")%>')
}
.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_tab{
    background-image:url('<%=WebResource(""AjaxControlToolkit.Images.Tabs.Bottom-Active.gif"")%>')
}

We tried upgrading AjaxControlToolkit to the latest version (20.1.0) with NuGet. Unfortunately, the issue still exists. For all I know, it's not an AjaxControlToolkit issue at all. I tested it in both Chrome and Firefox and it shows up in both. The site is deployed with IIS.

I've never seen this before. Am I doing something wrong on my end? Let me know if you need more information.

Here is the full CSS file:

.ajax__slider_h_rail{
    background-image:url('WebResource.axd?d=MWQb-AddVgEub29OKU5neWhsr_bbaCUSlMt7RGBDryMDZNrxapELWTbMAVt0PMghdnewXMkcUdalSiQVqhsD84Y1g-jfEBb1IrIkOI8A4z1mxZ9ZOcngkFktTDenserTzxtD3qUrbUilso8fhF0_Lx7MULJvhPEILRy1ydYwWqxKSQ4Y0&t=637636889360000000')
}
.ajax__slider_v_rail{
    background-image:url('WebResource.axd?d=24wSz0A1HIeJF7SFeCO3eM7o6l5-DKE9JdOuAwz0wew5A8eH7lxB5y--qJaAtzFt1S3BwjqhsIM_DSYX8Klcxdp35nG3_iE9xEtImmrzdhsqo9sRArXLlP5iwdM2DkW6-rfpvhIlN_9IrhzRuoGA5E__44uIaMzdD_eUtOh4JtrfQ8Lb0&t=637636889360000000')
}
.ajax__calendar_prev{
    background-image:url('WebResource.axd?d=5kK5ygYcM40mkvFpjJXd3mlRMqJsEJrmyukTlhPIYkC3jAsgPossLl8gLJ8ELMBzjmekaDbrpLdd_IoQLk8R8Z-Y_JLE9s8Ji-NK8aE74OV6J8JH-uWv8GRBvHxKse5Wt0-4rIDUuBAA55aAC3Sta5Q1yk_30EKw1aYH3i_CeAnXgb_O0&t=637636889360000000')
}
.ajax__calendar_next{
    background-image:url('WebResource.axd?d=M_aOGfrxSbijM7rzYnYbLHdyeCch7V6lzAKdFzWcXZIlAQ81gTFseA9GXbnFHrohBdx6ywbaPTWf1TKVVRI5FWwpDmosBPSbtayxVOpPwmwzEPNOu2GpHqpkCt8UxEkprzmAc6cjVH-adF9TA7jXItpFP2UdL-2L-4uLPsKfTN03S4AT0&t=637636889360000000')
}
.ajax__dropdown_arrow_image{
    background-image:url('WebResource.axd?d=qIUne3XIEulKejz4iY2RgECzTJim7EU1CCrCtvd6oHTlB0STmXa-r6zvCjYWifjDkB3bdmXTKuAnEMOqo5NUysYOCYlzq-O-F0OPi3GamngU78zl11sFqsyKc6zD8imyfYULwSyHC54-pwX8N3vWwTKuDi-7o5Yzu5OjHC57uSMYFQ8V0&t=637636889360000000')
}
.ajax__balloon_popup .rect{
    background-image:url('WebResource.axd?d=TnyHp-NSKO-r0mxzI7Gsuo1do7IQc9ZW6QPlrIgZauAb-615BRcMNnlbSjQ3LToH6AhsKT8odAYUd9Kbfct2DIfgkF-EB48IFbuK4JTqHVTAm67cmSHpbYYrLoxoe8TcnPKGXWzkgLp0pSeO5ns07mfyGkUoX8daA_3d_2VjiwPyXsbN0&t=637636889360000000') !important;
    background-image:url('WebResource.axd?d=sS8dLhNxgLMNf5x0uTfVB46IG6bue11zEvlcMoVnATvEAQ80a3V2iFrlPIMPnCKp8b2T1wd3JUidqNnYmkrE2-uNryY8PESki5zTvPfZctYihqWUJz3qIVrvre-RgaECS9MqL3HjwpjsN7D3q11HY2V1cZgOIa_6SVliwgZYbn3Encba0&t=637636889360000000')
}
.ajax__balloon_popup .cloud{
    background-image:url('WebResource.axd?d=Z0jZrTOMIGXrpB1Y3GQpwK1C69bQKHg0a4odU6DnQl2vIXpmL9T1Ku1GaVADeZsQnxnUln3XRaBXVh8KQ7SRmGe3GJnV0gAsBChs-Sm4EQoQMrGq5IDL2Wn5g-1JFierShBciD_P0EFv4QFNSYdZvC45eIoqbW3HC-N7ba9EusM8gZSN0&t=637636889360000000') !important;
    background-image:url('WebResource.axd?d=GqJUQt09QeEr7SI0Db9T8T5Wk4oJ8W-YplgqASfD2A4fcnXl-yMyv7OcPhG-6L_vXMnHvidsAggcqJYJ0TSfRaSnSX04eJHNgRTWy3ZsWfS8ZfMyidest74Lsum65vvBe55WFJIwmoSqdHjnnu6EBrP60LcRIyQXFHuCz7XJGMo7qHou0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header{
    background-image:url('WebResource.axd?d=6e2ZtHCzFnq05qqUR0bA9-iGoxisZsuw4WOhKPRLBmaRWMu7mxiofLtx_g05E8HYFt7McyjtyRw_lcW1iaZGBq5gwWWBG2ZRi6pjDPaY-zr6jcIgFhC8hORHo2G0H_4qVXfjA5eI2nXxEQ4TbrugVaFbXEo1&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header .ajax__tab_outer{
    background-image:url('WebResource.axd?d=LEox7ScSnZf6y-CY8vNNFkqn7iGfx0WI_z47Dkkq_6JT47ovSb3SPK-w0vzL0w5Hg015k3dtvgg_rK1TdE4Yq0obTjEACMcEUnHE2hgIcZfsxMSVzDiGELWo4vPxwpLkUr4S0B0NOV5PhZS_0kN6IeRTbXY1&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header .ajax__tab_inner{
    background-image:url('WebResource.axd?d=4LYaAyAcbvEYoVZdgOWu-3b8TPYuACM677CyoqA6v6w32pAwLQactv1SnJ5QFXbk9mrZw9x_bgrsiTpKJQ2LZCM3me0n-aD0jZfanx1U-zxzzDQ7Jhhe4rBZxJ-s4OYsARquGv09MIf9F7uI2LpfolovszQ1&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header .ajax__tab_tab{
    background-image:url('WebResource.axd?d=RU3ATyHNf_6u1-MD1LFdS4LrLUDrxKQny0CnNfyP74rypmqbTobV5meB6MZih9dwRUQ5-oXApB2caruP8iTNfAsNobaSMi7iFqdv_9uOM97QT7ilnp_7HYqWVp5FHf2zmY2qDnc8-wklBCM8ssO_mhVKr3fuO7Uf7I1u8W89vCbwN4yO0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header .ajax__tab_hover .ajax__tab_outer{
    background-image:url('WebResource.axd?d=tZkOWbOwsPmoOoHhH2yxrTHzKN0l24vEmx9jt7q73N5cu1XRGt9EQLZ8EuPot61iN44yWksBWnATfQZ1uFqZaMTRRZaqWNxogdhrADDfVeyzLbqMjCZMX3Fs7XbnUTzTfAjt_P7Wx_d7WExtfgAaG5iSo0KECljnSYs6rcW6_FMs8pOR0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header .ajax__tab_hover .ajax__tab_inner{
    background-image:url('WebResource.axd?d=meCLRp1ez5NrNz5O-98gzlhYj1Wckg2-lacclqzCTDjOKrn73wwQ_dhjgh0QNsA8FeCM-k0Z6hRHtdFY0-39hakY-WQlzz-AGwVv1pv2hAW-6US-EVbVqHGHEpDSjKxxN0PLoxXb15n8ytaD0k4mxmRxL_I7PStEbBBqEVBjpVVSJXQq0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header .ajax__tab_hover .ajax__tab_tab{
    background-image:url('WebResource.axd?d=LHkncE13mfj9elJDSa7wcZnyRGAOeojyjv8-TMusVrOKUkw7ELE31Ts8xw1BiLLITljDxjdydaEL5vfi36mzqmU088atWlL46QVLIdN7G8y7A_GLTTSQdgevPBL4iPqTcRSbgh8ckflKqibYmiApdQFC9Jk1&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header .ajax__tab_active .ajax__tab_outer{
    background-image:url('WebResource.axd?d=benZBUyHBr2f2lGrrGp7xZX9XExXm6L0a5mFlK2H8I24Uukiv7_lo3tRC5oz8_vNC4ctoSO1LHIYs0hJLGLKM9amQUO8lbyhAcLSlW_vdiSpq2ylPm6O6K72o3VcztTemBEld80MXL0Db8wjvfctGA6jVXuK3Pdx7PgY30uZgE7UBd7A0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header .ajax__tab_active .ajax__tab_inner{
    background-image:url('WebResource.axd?d=ef5pPc_1hMf35IY_Mn7cnJtQ6Q2Ixc3kEtcU3rJTVqZ8Wo_85-wL2B9mhOX1CS6hdedxWvJhUhcfbsVGNmPO3eQVmqFe0Fzyt4E2MnkvXw5-sqf9HDDskcHrziFecnlvq0Pew1busGr-akaJqgpCCJqpPNW6ahAtIbMoHlB8o89C6VBb0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header .ajax__tab_active .ajax__tab_tab{
    background-image:url('WebResource.axd?d=eOkTcjBi4Qz-Vg96RfWwydldznIeN9v4d3qPb4K5Zx3NQePeB3Gk09JQO6V9xCHyZrD1Jttha546aHjRUSRWKMKmdSd5xWSkw7KVShT929uRd7bHSTrWHxJoAPctZIMcukWtqFovyfACu4Fgc-_TLkbixOo1&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalleft{
    background-image:url('WebResource.axd?d=6e2ZtHCzFnq05qqUR0bA9-iGoxisZsuw4WOhKPRLBmaRWMu7mxiofLtx_g05E8HYFt7McyjtyRw_lcW1iaZGBq5gwWWBG2ZRi6pjDPaY-zr6jcIgFhC8hORHo2G0H_4qVXfjA5eI2nXxEQ4TbrugVaFbXEo1&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_outer{
    background-image:url('WebResource.axd?d=ZP3uJrgVj0AsIkquS-BAJSGafCG4dQ3aefC7Zp6bgb-RQEXrFgkyaJGO6OgYhFSShBSGXzRLx6_zP1jrcHTsdqjgrbrf_4WqcnymvJJJ1PZ86c2YQMirDGxfsX2QME8qC-dKWrOM-u9yPzXg6sF753bldf7zgNa5IBH0y6u3X7nq5VZ60&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_inner{
    background-image:url('WebResource.axd?d=nfNBtpsmMMVTBLsbBVVIzC99nURrcJnYIn5BHXV9JBWjiageXtuupa-FyXyIutMMxvlVVgnBFMnW-WDOEd6CqUDB53wDNiFfa-PSb1O5f-JpH2LK0pC8gEz8DpcPhoislagXOmhcVUvHgvEbJXbO9xGAitrJKtEYDQN4M0qP3jYpR44n0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_tab{
    background-image:url('WebResource.axd?d=Zgf8za9UuIYPUP5h6j90JsTLJZuuN4BEi1AN_gd--cItttOka0thEOykMwcFY6wXuLeSYPeNrjbJ1WCLKy79Su-MD7Ck_7z1CL8tEN0QMBWN-SQh0kgBbUXf0oeKrPnVQQvtv8Mu5u-3NqtOWnwOLa_qbMTqco4LQfiZmd04GWUk1i8_0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_hover .ajax__tab_outer{
    background-image:url('WebResource.axd?d=SUUAH9M-1YYivRxmxM-epR-VXdbYNUA4NB20rv5VfM94hZ9Fr8molOu1uXjtru6kDQBxBLco1unmudNtG7TkLfRE9JIQKWHTqXpjwKd1o-Lcw9_dnPByCGjANbkxb3bQBG2y1BZR40Itm6XxhaYp_5vdgOKl552ZN1xkit2gHjgqvbmH0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_hover .ajax__tab_inner{
    background-image:url('WebResource.axd?d=Bniw9D4UmOeHIeavu5qf8NZgn1wbS166I1ghbY7bFwUUmvwXUNDdtWw3u8PXjBS7__iKYU5mHLWOoIYQQLW2rH6BQJVVDvlHT-w6QndYy_QnQjttE_Wz3R5-_0o2Q1iOWhOJh50lZ2iM4MFNnj3nEUXHSxQCgli0qellyRNoCzHp90Fz0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_hover .ajax__tab_tab{
    background-image:url('WebResource.axd?d=INrqMYZQL29gvVv2AQRn02LcPOdnLfixjN9VsThpBeaoNZnBhCLcCSoA4JtTxNBz4Wv8vV2Ot0Y_cvcQnIruqJUKK86jaBT60U4P7e0ThUXq1wN5dusAofOvUqC4lamGTJoXx9_0ZLi8VhbOcb4P_3Ki9nCw5UPOeD1iRv1HAE_B-1240&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_active .ajax__tab_outer{
    background-image:url('WebResource.axd?d=RD1dsTWqAosKehAVdBaI8KAwRTbgAkr8P9qyuW24a4EYoWnoLnHmFiIhKApbWSiHpZNcw2AecmIqhvnvHJrjgJzzdP2jJ0nl33p977jmzaOFvQ5dSVR15uDPBFzuuRrPjtlaqJ48a192Z5uxLfxskDJ63PQyttWwTlxaHJizWZVXcWOe0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_active .ajax__tab_inner{
    background-image:url('WebResource.axd?d=eD02UK_4rGpoE9OdAxm7y8fPgtiXIm7Ss8D3yMFbH_6L5gjPKNBvhw9cRKV87EyZy3_PnM9B13w659W0ZPFQoazvmcoouygK_QPXU1IqiU2tOYnBmpJ7pJcmbsjBScXESK1VPi48x7csVBheSxE_qLV3zKeAM0SF_4Us6rjGgCCWlLmI0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalleft .ajax__tab_active .ajax__tab_tab{
    background-image:url('WebResource.axd?d=1omOvcdIwF9ZFFS5gNJKhahOhyfgkz0VhajhCDLpRghlIH02NeT4_c1TxebaXepFDZ4JexJfUpVCmUix4U0kTVHThyaiPmJODzs8sMRrLjMLYMgo5s3JiDUbh0xWXO_DxFyeIGgU4WMExRgN_W1qfw-umlQ79CP3uXCcUtk76xDaCBF90&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalright{
    background-image:url('WebResource.axd?d=6e2ZtHCzFnq05qqUR0bA9-iGoxisZsuw4WOhKPRLBmaRWMu7mxiofLtx_g05E8HYFt7McyjtyRw_lcW1iaZGBq5gwWWBG2ZRi6pjDPaY-zr6jcIgFhC8hORHo2G0H_4qVXfjA5eI2nXxEQ4TbrugVaFbXEo1&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_outer{
    background-image:url('WebResource.axd?d=PORbDXIghhI5Zz6rGoRTvOaR85ZlMElBXXzCRX80LjhL_6Z4EtBe508jlW_7rN5WhBcK9zCpGZJBj7LRN-4_IJHWHgbBx05tkuNANcUwWq5xb5o12y2VS9_CSH1EDzXpuldJ0l3tIMwr4ukAYsAWyJza5v3zQUQfqxRgeDKyiloywmfm0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_inner{
    background-image:url('WebResource.axd?d=ApXwEpLesM2zc9TogLMOH7VNVSI-c2bzmkNbWZ4C2LiP5VSu2GQ9eg2ugenL-89eQGNe0yUP3vVaONAWIkTLpbOaDCaWDLy0EFYKguwhdpimMzr2d44EaEmKeICH0UzV1FlXd3eeMmkFS6cCM0IQWlAVZu7RHJy8Das1YnHgTXvRWAzv0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_tab{
    background-image:url('WebResource.axd?d=ZAREtG6tsoP8qCb38lsajjx0BGfcol5mt4o2atJCPktpCPrxIYPPd5ihorE0CYUdBQ2OJ9KEUE7K2HcDHnGpWE4zHiKBUFgdJRDflOcryEmhqi-oiTVERt-XZIthbUDbVOtQKEDB96b7McaWhlaZ9fLcquOjIICnZ4GCGVjbD0XPjZg40&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_hover .ajax__tab_outer{
    background-image:url('WebResource.axd?d=oSxN9eXmevs2zBL7YqMdC7bA3TVQAMis97S3y44urumnxqb69kA4MAe4UUovdRJ6mGUVK9-ZiDj_SpiwRqDgk6NPfrVMtLUILduURH36E68YVuElHmuNnZ_JvrNoawkEP6MAiPOE9PhAfiU6fcbrr2ya2zp1VMHnrNNLz0MB8TISIuWN0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_hover .ajax__tab_inner{
    background-image:url('WebResource.axd?d=bTRseJ-y475XCfb_tRAvmN95PUwW_ZPYsh5ZXtkP7c5GUkOj3gItvU75ru7rfR7ITaXXwS_eefaJop9H8_g9vjVEFNPDXhz5jzJF3aR1ibCwacSYtmkwGYxfIkpeNwoEc2OJ4tBEV3dsqo7ArAB48jJGgLVnkff_wJAANwHKx_w5SGey0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_hover .ajax__tab_tab{
    background-image:url('WebResource.axd?d=bTRseJ-y475XCfb_tRAvmN95PUwW_ZPYsh5ZXtkP7c5GUkOj3gItvU75ru7rfR7ITaXXwS_eefaJop9H8_g9vjVEFNPDXhz5jzJF3aR1ibCwacSYtmkwGYxfIkpeNwoEc2OJ4tBEV3dsqo7ArAB48jJGgLVnkff_wJAANwHKx_w5SGey0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_active .ajax__tab_outer{
    background-image:url('WebResource.axd?d=FJ8bOv6vJHEZr25tDOLMngawM57INgv__2foXRuwyL_Aqm93NTFQAf7weo240xzIDoJYqS6eqOct7RoeRFSRAoqq-2c81Aa5xQ4O-t-X4kKQNP_rWWvYTcJNu-zCA4fynmgLhYIo8d2pNWXydwL-OLaETdbXz_XGNtVGPyF6Qy7m6Hmc6FK1EOKl-1ijic95F_7g-A2&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_active .ajax__tab_inner{
    background-image:url('WebResource.axd?d=I1oS1Zedf5KdYhMKkOtbfHlvyBvMcN8ki68XyYDHXgkLNAMmXsdfY9hnDXlILZ6TA9qQ4mOah5y7O6jc1ZDpUiwv27V2uYvdu4ASEzQBsiJCCa8STOPh2Naff-RUFpqeEnvHDoRQAqwas0Xnw_OVIFDpGShRvqH-huAweMf_LA7rw7Ua0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_verticalright .ajax__tab_active .ajax__tab_tab{
    background-image:url('WebResource.axd?d=PnargFOLVuQ2_CNHQdIbGY-rn1EkUB2_IKorrM4ULBoXAVklpng32zFhXX2-e6PsLf3dc80vByBsaMoEWja5vJEA7x7YC31bpC_4eGdMXRblMFmMJDhK7UGv9Q_-IaeKJNjBy-CdxBQQjUU1yYNwDufINYNzp0JNA9TlJgV4rvjzv_wX0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_bottom{
    background-image:url('WebResource.axd?d=6e2ZtHCzFnq05qqUR0bA9-iGoxisZsuw4WOhKPRLBmaRWMu7mxiofLtx_g05E8HYFt7McyjtyRw_lcW1iaZGBq5gwWWBG2ZRi6pjDPaY-zr6jcIgFhC8hORHo2G0H_4qVXfjA5eI2nXxEQ4TbrugVaFbXEo1&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_outer{
    background-image:url('WebResource.axd?d=Ivw4k-SecqyboL9y9nDqbwvpbnS5Df9bDpwY-x1wXdCoMKFjqbDkYdqBgPDe4Pdpl4dbHeUggC5fIiiugkNj4LhlQSVjIUZlwQf-M0Vim5qQyFZpW6aya8_SjrEE_s41xuH5HmFWgGK838Hx4l1I1LF4uu6z_Yo7mMemAxLH9actapb40&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_inner{
    background-image:url('WebResource.axd?d=MflpIqHv2fCGmJw0-LCBxX6gdqfwIFlYHqkzpTBiRXpl3E0Bf25vqAUUK5sndi631VVEmgax_VgVXqYy5-cZQc6N7iMXUcEFkAnIsZcSuwFimlfxjYaJ2Eg3YihEs4neJPjsGiMP7E87qulWpla4D5sUF7qI-X4CA7NxeGtRu08nBbFm0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_tab{
    background-image:url('WebResource.axd?d=hQm1lj1sAudH4FfkC4XQ8_ZeE0FXKs-AnUxVP97y8CvvOgs5jrxFGML92NfDFUbUKLq8vnJRxa9mGwBVKm36AP4cwMVGthd2VFYwLFBsqkzgTCHJ0uuIMnY-WTYQQRpdYdi4OOE2TREg_dfkx66CcQMgmHE1&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_hover .ajax__tab_outer{
    background-image:url('WebResource.axd?d=LxNmNihhn9U6YPlIS-MOR5zNScSNxNMjKxpxvexHoWGW-vJX2kC7cx7Fs4_PGF6zGXXY-UiebpaYgKlcjRwu-GA6VOeDI-_RFNAZ_qLTOzYhYBkfysuKlH_qJPkN2kF2qLwA3DsLngLkz-Ln-3m16Zr8n6x7pVg8OLYODbqsgqS_UUV10&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_hover .ajax__tab_inner{
    background-image:url('WebResource.axd?d=DiFl4rC8zXAC2Za-Ezy9KaAdzx-PCrTrEZt0sl6h8Svxq43LICJOGyIHjaP_CH2W6omnG1GPln0KnrH79PSR4QqaFnxqT5NtZE4wQe6frBOgf9wJIXJqEDg-sYVleF_CqDLd6EPAaIlCraLFhfVYr3_t-rBVKOdJ4kK-hUI4NCwVPjNZ0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_hover .ajax__tab_tab{
    background-image:url('WebResource.axd?d=ddUUiTjm3boygsPnxV7MZ-pKNQya56irzemTe71sJz17nznQZ5RUWEqVnmGNiHC6YVx4Lj2JS6_nGDbtCz3SqalfXJPlvSgkqaVyz1_w1qMupbh-1XOzh05ljYWgpx302uGzaYaIPw_SfATzaFrzrWbtNNj9ZsjWApWc1MucugECs2x60&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_outer{
    background-image:url('WebResource.axd?d=woDyxZgg1-nmT4Ctun_kJAoKqqhcqYoS7Rvym78HHG0J4P7TPN5emw0sBim7KpGqfz3OMQK9rL91Jaw57sWGTL3t3Tq_mCaMyr4F-D1Pap0iNVjclHME5shIcKnHXUIE5dPltySLsoTQWrPGi1JbkXIph0WgE3rTIWERLnv7jN7V_5od0&t=637636889360000000')
}
.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_inner{
    background-image:url('<%=WebResource(""AjaxControlToolkit.Images.Tabs.Bottom-ActiveLeft.gif"")%>')
}
.ajax__tab_xp .ajax__tab_header_bottom .ajax__tab_active .ajax__tab_tab{
    background-image:url('<%=WebResource(""AjaxControlToolkit.Images.Tabs.Bottom-Active.gif"")%>')
}
.ajax__multi_slider_default .outer_rail_vertical{
    background-image:url('WebResource.axd?d=ta0LCbf2X4cudR1EWs16VbWZmk2CN6NANT6hDFtc7XtCWwwvPJ2kIoevGaO5FLYhS7cD6Rrqi8RuGroobvMrfZpb_9UflTW1HSU_erxtuQ4HJkYFwOVEuXubwC8nSO1k_z8QQ6bdE3ivmY5UD88s_FJD5OySv2xZK19s2yR86hxtbfwSzkjKrw7QsemISo2oTBVixQ2&t=637636889360000000')
}
.ajax__multi_slider_default .inner_rail_vertical{
    background-image:url('WebResource.axd?d=K9SX19XqTp5uohdfqPLOhTGPUIwUkY2EbW9oHchXno81pJjflpvlxp-22Fruinbnxn5L0lJGtfTiwhZpbYs4agCL2iyj8ZeGrc_XJiQPKY_NF9JA6M0JQ4ntQ5TAYLMsHlUFBtggv6b1MD0-Tgm3PYhik9LyaedV5TdG8QrXV0QwEqTO-crSqDzvxNYIenVIEaLEkg2&t=637636889360000000')
}
.ajax__multi_slider_default .inner_rail_horizontal{
    background-image:url('WebResource.axd?d=9Hc3mOxW9wnfqj-dkPwJJKdlGZ7AuuV17Uadw1U59By-yv0_cGGEwEP7ql9lYuVbRqm8TNxumbm8pW-s3jlKGlC94E6ZZ42vtIhTZnJsF-xprlIaXZkanjwIw66Lyxr38OLGMVraKa0SdOWINmYoXySjnSGsKQeDS3Ys5dcoUsSSRVJeHEYOv4MvkVaVRUwBPsSa0w2&t=637636889360000000')
}
.ajax__multi_slider_default .outer_rail_horizontal{
    background-image:url('WebResource.axd?d=_T53n7S1F4zH9RBpuCRKJxptW7weejxnmXCbVCUQ15EJOl4j9ucu6y3Uav0YTR8Z_MYcmcyGaXlSRqqOFW_evn8vF3x6-lDFJO-KBCh_swyRUck6DHS-KKpRf0PcBV2hZK6lCM1YlJNDnweriedqfPZ3-9SQ8IOYdRsDLQJFymPrc1DbPnc4JkBPPJ1BCgQzXSnDpA2&t=637636889360000000')
}
.ajax__multi_slider_default .handle_horizontal{
    background-image:url('WebResource.axd?d=jRji05Eo_vTWu0ZQwRxH0ww-BJzgW31RuQlix3wKVO523pGm53rkYABwXilfAMl1RzFvj52f7oi5O1suTGPe1MXUem_IBJegY3OfPDfFzNYiO0XarE375Hu5a6E9VM9ttP456bGu4siIX4OyZ0kj7dqUQ5O1e35T97juA5RHAF-4L6xqhtbxJs1hzZLYP1pUhycP-w2&t=637636889360000000')
}
.ajax__multi_slider_default .handle_horizontal_hover{
    background-image:url('WebResource.axd?d=AuSmJNkeIlE-_eIHmiIWf3Og7c95F6qqNDTbpYgeN4cVcBPnwTja5HoP4ELYxl1-Yy92l8feIL8_XoPT_9pG82_EcPh6GnFKbEKFgYnH1QeMmTpObD8Lk1ghrHyr5liLGUtLMul5KOvriwkGmv0hwo7XGkCo-LpTxIcjhuUB0RlCVye2puiSfSeNTpBZANmgU3rdEA2&t=637636889360000000')
}
.ajax__multi_slider_default .handle_horizontal_down{
    background-image:url('WebResource.axd?d=ZZBEyI8yE464aw-JO8pXPhr3ttSssj8SoeivcqHmQRKENkLGg1J-Rd_WYygJQ3461aBHAO-tm-2tS9tVMouYw9hOQZLy1jmZYlOxluLLfhh9ztDvdRPSYd43DM_xpndpm2UVjhiwYWskn0t5zkpWbJB369BwA6F1Q023qxPvULpwWCzx-cnub47tfreP2hQDzShQYg2&t=637636889360000000')
}
.ajax__multi_slider_default .handle_vertical{
    background-image:url('WebResource.axd?d=QcTHXblcsbz6Av4wYIy7mkfSD1nc9P0caSh5aKs-4E73bLrZ4jzYy5_RMvTEpDfnRfpDVd3H--VvrLI03cgEtnkTgr_jY9kaukrE1TNDSFLtDz7U0YFGziXb66fP6WCkDWKAifkYQOZ02gD8sEmclLV_oIgjLSumQa-teTShozYTQ4qXLh0dg9AgZZ-XElfnCLmuVg2&t=637636889360000000')
}
.ajax__multi_slider_default .handle_vertical_hover{
    background-image:url('WebResource.axd?d=mCj94QPFNrIRJljvS2ew3pJraj4RsCJldJByUzh7H-tK4IJrROVJhWej6RCWiURrXKbS0rxQEZn0d3zF-zOjtz463ERTwivMA54CkqxC_uTPoaF-iFznRkcDDcvwnsB98-y6nQYD_5UPflFvk_EHDoJtnF_AIPqjUKTaGe4AXNxl0vniq3a-mWzimA-aRcvyN4KXig2&t=637636889360000000')
}
.ajax__multi_slider_default .handle_vertical_down{
    background-image:url('WebResource.axd?d=Os6tz_oz54kRxvLC1U84hpx0Sha3QS6LqJ5h008MicMc6U94wY6eMW5C8jnh0wm0vaU7FhIiyGQ2lMvnKGkD7nn5eKDmPHqUV07QVHTkj0TMhd_irLMySBVOkqwrgnlaITDDJ7DIyXBWsWzPLt8dzJ9TdFI_V5Hq4tcFYLmR16OnH-vQxV0J3RryMQ7imD9f-VoVFg2&t=637636889360000000')
}
.ajax__combobox_buttoncontainer button{
    background-image:url('WebResource.axd?d=KUv9iqDMwUEZCo7_pETQ0sYfFpPomDFyWvIz6r6Sb-pGiv6uDfh1h9tLVzCNZ5km5e6CB_bRALHglCb8iynU9hUp4DTNVOq2Wudsi44ou5_KnFe1GTMyryuF0Lu0tmDvGrCIsj9YwqsAmqHx4ApD3d2wENLEXIxzxHg2tveq0JbhNWVa0&t=637636889360000000')
}
.ajax__htmleditor_attachedpopup_default td.ajax__htmleditor_popup_bgibutton{
    background-image:url('WebResource.axd?d=C95B_uQUL_QLVf9JzCw9Wha3Opx8-NrU0-YUVBic_n_I2yg5NlNsuhG346zhhiSBg18Vv5GUI34Fnpm1libi64LPdeyYOJHZpyoUpdWDNFjaYwRU2sACTzJH6j7zbIhdxRLPVE8nWE6HcgkolNHiUXxbSFU6Uq-Me0TKVjpRJnGiL2HW0&t=637636889360000000')
}
.ajax__html_editor_extender_button{
    background-image:url('WebResource.axd?d=SlaRVso1b0cuOQ9KqzYpwWhumbI_ItZNf9TAzfW32NoiClRpOpqV9XM4KsHZ9WLVrKUOT1boXX0_Yglt0hfZOwiOjqjAg1wgd69yYFB8RfYnDT07DYLc4JTFZ14Oph7e1DBUyAKOrof4DtQOmzQ5AomyDnCousMxkcybKwbIhGvnz3jV0&t=637636889360000000')
}
.ajax__html_editor_extender_separator{
    background-image:url('WebResource.axd?d=SlaRVso1b0cuOQ9KqzYpwWhumbI_ItZNf9TAzfW32NoiClRpOpqV9XM4KsHZ9WLVrKUOT1boXX0_Yglt0hfZOwiOjqjAg1wgd69yYFB8RfYnDT07DYLc4JTFZ14Oph7e1DBUyAKOrof4DtQOmzQ5AomyDnCousMxkcybKwbIhGvnz3jV0&t=637636889360000000')
}


来源: stackexchange

问:
An existing connection was forcibly closed by the remote host in discord.py bot
basically I was using discord.py and another modules when I got this error
when I go this requests connection problem how to solve it?

I was using python-aternos library
it uses cloudscraper,requests,urlib
I don't know what to do saw many posts but most of answers where to change the headings but yeah I want another way like to add a new connection I don't know if that possible can anyone tell me?

```<code>

Traceback (most recent call last):
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 703, in
urlopen
    httplib_response = self._make_request(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 386, in
_make_request
    self._validate_conn(conn)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 1042, in _validate_conn
    conn.connect()
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connection.py", line 414, in connect
    self.sock = ssl_wrap_socket(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\cloudscraper\__init__.py", line 98, in wrap_socket
    return self.ssl_context.orig_wrap_socket(*args, **kwargs)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 513, in wrap_socket
    return self.sslsocket_class._create(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1071, in _create
    self.do_handshake()
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1342, in do_handshake
    self._sslobj.do_handshake()
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 489, in send
    resp = conn.urlopen(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 787, in
urlopen
    retries = retries.increment(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\retry.py", line 550, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\packages\six.py", line 769, in reraise
    raise value.with_traceback(tb)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 703, in
urlopen
    httplib_response = self._make_request(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 386, in
_make_request
    self._validate_conn(conn)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 1042, in _validate_conn
    conn.connect()
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connection.py", line 414, in connect
    self.sock = ssl_wrap_socket(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\cloudscraper\__init__.py", line 98, in wrap_socket
    return self.ssl_context.orig_wrap_socket(*args, **kwargs)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 513, in wrap_socket
    return self.sslsocket_class._create(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1071, in _create
    self.do_handshake()
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1342, in do_handshake
    self._sslobj.do_handshake()
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\Users\Dell\OneDrive\Desktop\Python\aternos_v3\main.py", line 221, in <module>
    asyncio.run(main())
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 649, in run_until_complete
    return future.result()
  File "c:\Users\Dell\OneDrive\Desktop\Python\aternos_v3\main.py", line 218, in main
    servers = await get_servers()
  File "c:\Users\Dell\OneDrive\Desktop\Python\aternos_v3\server_opener.py", line 13, in get_servers
    servs = aternos.list_servers()
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\python_aternos\atclient.py", line 326, in list_servers
    self.refresh_servers(servers)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\python_aternos\atclient.py", line 352, in refresh_servers
    srv = AternosServer(servid, self.atconn)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\python_aternos\atserver.py", line 69, in
__init__
    self.fetch()
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\python_aternos\atserver.py", line 74, in
fetch
    servreq = self.atserver_request(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\python_aternos\atserver.py", line 231, in atserver_request
    return self.atconn.request_cloudflare(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\python_aternos\atconnect.py", line 250, in request_cloudflare
    req = sendreq(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 600, in get
    return self.request("GET", url, **kwargs)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\cloudscraper\__init__.py", line 257, in request
    self.perform_request(method, url, *args, **kwargs)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\cloudscraper\__init__.py", line 190, in perform_request
    return super(CloudScraper, self).request(method, url, *args, **kwargs)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 547, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))
</code>```

read many sits but none of them was useful can anyone help?

ContentLicense: CC BY-SA 4.0

Body:
basically I was using discord.py and another modules when I got this error
when I go this requests connection problem how to solve it?

I was using python-aternos library
it uses cloudscraper,requests,urlib
I don't know what to do saw many posts but most of answers where to change the headings but yeah I want another way like to add a new connection I don't know if that possible can anyone tell me?

Traceback (most recent call last):
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 703, in
urlopen
    httplib_response = self._make_request(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 386, in
_make_request
    self._validate_conn(conn)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 1042, in _validate_conn
    conn.connect()
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connection.py", line 414, in connect
    self.sock = ssl_wrap_socket(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\cloudscraper\__init__.py", line 98, in wrap_socket
    return self.ssl_context.orig_wrap_socket(*args, **kwargs)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 513, in wrap_socket
    return self.sslsocket_class._create(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1071, in _create
    self.do_handshake()
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1342, in do_handshake
    self._sslobj.do_handshake()
ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 489, in send
    resp = conn.urlopen(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 787, in
urlopen
    retries = retries.increment(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\retry.py", line 550, in increment
    raise six.reraise(type(error), error, _stacktrace)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\packages\six.py", line 769, in reraise
    raise value.with_traceback(tb)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 703, in
urlopen
    httplib_response = self._make_request(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 386, in
_make_request
    self._validate_conn(conn)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connectionpool.py", line 1042, in _validate_conn
    conn.connect()
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\connection.py", line 414, in connect
    self.sock = ssl_wrap_socket(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\ssl_.py", line 449, in ssl_wrap_socket
    ssl_sock = _ssl_wrap_socket_impl(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\urllib3\util\ssl_.py", line 493, in _ssl_wrap_socket_impl
    return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\cloudscraper\__init__.py", line 98, in wrap_socket
    return self.ssl_context.orig_wrap_socket(*args, **kwargs)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 513, in wrap_socket
    return self.sslsocket_class._create(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1071, in _create
    self.do_handshake()
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\ssl.py", line 1342, in do_handshake
    self._sslobj.do_handshake()
urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "c:\Users\Dell\OneDrive\Desktop\Python\aternos_v3\main.py", line 221, in <module>
    asyncio.run(main())
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
    return loop.run_until_complete(main)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 649, in run_until_complete
    return future.result()
  File "c:\Users\Dell\OneDrive\Desktop\Python\aternos_v3\main.py", line 218, in main
    servers = await get_servers()
  File "c:\Users\Dell\OneDrive\Desktop\Python\aternos_v3\server_opener.py", line 13, in get_servers
    servs = aternos.list_servers()
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\python_aternos\atclient.py", line 326, in list_servers
    self.refresh_servers(servers)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\python_aternos\atclient.py", line 352, in refresh_servers
    srv = AternosServer(servid, self.atconn)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\python_aternos\atserver.py", line 69, in
__init__
    self.fetch()
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\python_aternos\atserver.py", line 74, in
fetch
    servreq = self.atserver_request(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\python_aternos\atserver.py", line 231, in atserver_request
    return self.atconn.request_cloudflare(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\python_aternos\atconnect.py", line 250, in request_cloudflare
    req = sendreq(
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 600, in get
    return self.request("GET", url, **kwargs)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\cloudscraper\__init__.py", line 257, in request
    self.perform_request(method, url, *args, **kwargs)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\cloudscraper\__init__.py", line 190, in perform_request
    return super(CloudScraper, self).request(method, url, *args, **kwargs)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 587, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 701, in send
    r = adapter.send(request, **kwargs)
  File "C:\Users\Dell\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\adapters.py", line 547, in send
    raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(10054, 'An existing connection was forcibly closed by the remote host', None, 10054, None))

read many sits but none of them was useful can anyone help?


问:
Sharepoint api functions execute via python module through proxied communication
Has anyone tried to execute a sharepoint function via python module through a proxy? I’ve tried to use shareplum and other python modules to execute the sharepoint calls, but run into an issue with the tls version not being valid or ssl error. I’ve tried setting the tls version, but still get an invalid version for the ssl or the tls version depending. I know I’m able to access the proxy, but fail to access the sharepoint site with a bad authentication.

I can access other sites via request, but I know that I need shareplum or something similar to execute the sharepoint site functions. If not going through a proxy, then I have no issue. However, my company recently deployed a proxy and now my script is no longer working. The code to use shareplum is similar to the code provide by the git project. However, the git project assumes straightforward communication to the web server with https or http

I’ve tried changing the tls version to default 1.1 and 1.2, but neither work. I’ve also tried setting the protocol to http verses https and tried to first pass the proxy server, but no success. I tried using proxy manager using the proxy, then using the created session to access the sharepoint site, but that also fails. Using the proxy manager caused a bad authentication with the sharepoint site.


问:
Ploting multiple graphs on the same figure in a "for" loop
I'm using the moody function
by ILDEBERTO DE LOS SANTOS RUIZ and newton method for solving colebrook white equation.

My code is

```<code>a0 = input('Enter initial guess: ');
e = input('Tolerable error for: ');
n = input('Enter maximum number of steps: ');
a2=0;
format short
for Q=[0.0001,0.0002,0.0005,0.001,0.002,0.005,0.01,0.02]
    for Re=[10000,20000,50000,100000,200000,500000,1000000]
        syms f
        eq1=(-0.869*log((Q/3.7) + (2.523/(Re*sqrt(f)))))*(sqrt(f))-1;
        g = diff(eq1);
        g2= diff(g);
        fa = eval(subs(eq1,f,a0));
        ga = eval(subs(g,f,a0));
        ga2 = eval(subs(g2,f,a0));
        gg=abs((fa*ga2)/ga^2);
        an=a0-(fa/ga);
        if gg<1
            disp('Convergent')
        end
        if fa~=0 && ga~=0
            for i=1:n
                a1= an;
                fprintf('x%d = %.8f\n',i,a1)
                [numRows, numCols] = size(a2);
                a2(1, numCols+1) = a1;
                a1= an;
                if abs(a1-a0)<e
                    break
                end
                a0=a1;
            end
        end
        moody(Q,Re) %moody function the part Im having problem
    end
end
</code>```

Where Q is epsilon/D
I want to plot all my Q and Re that are in the loop on the same  figure where moody diagram is

I tried the hold on after the moody function but it showed me the same plot in the figure

EDIT:
I changed the code and now I get diffrent figures saved to pc each time and I made them into a gif but I need it to be on same plot

Body:
I'm using the moody function
by ILDEBERTO DE LOS SANTOS RUIZ and newton method for solving colebrook white equation.

My code is

a0 = input('Enter initial guess: ');
e = input('Tolerable error for: ');
n = input('Enter maximum number of steps: ');
a2=0;
format short
for Q=[0.0001,0.0002,0.0005,0.001,0.002,0.005,0.01,0.02]
    for Re=[10000,20000,50000,100000,200000,500000,1000000]
        syms f
        eq1=(-0.869*log((Q/3.7) + (2.523/(Re*sqrt(f)))))*(sqrt(f))-1;
        g = diff(eq1);
        g2= diff(g);
        fa = eval(subs(eq1,f,a0));
        ga = eval(subs(g,f,a0));
        ga2 = eval(subs(g2,f,a0));
        gg=abs((fa*ga2)/ga^2);
        an=a0-(fa/ga);
        if gg<1
            disp('Convergent')
        end
        if fa~=0 && ga~=0
            for i=1:n
                a1= an;
                fprintf('x%d = %.8f\n',i,a1)
                [numRows, numCols] = size(a2);
                a2(1, numCols+1) = a1;
                a1= an;
                if abs(a1-a0)<e
                    break
                end
                a0=a1;
            end
        end
        moody(Q,Re) %moody function the part Im having problem
    end
end

Where Q is epsilon/D
I want to plot all my Q and Re that are in the loop on the same  figure where moody diagram is

I tried the hold on after the moody function but it showed me the same plot in the figure

EDIT:
I changed the code and now I get diffrent figures saved to pc each time and I made them into a gif but I need it to be on same plot


问:
Defining MongoDB Image Array in Next JS
in the following code, how do I define itemData as post.images[i]?

```<code>import clientPromise from "../lib/mongodb";
import Box from '@mui/material/Box';
import Avatar from '@mui/material/Avatar';
import IconButton from '@mui/material/IconButton';
import ChatBubbleOutlineRoundedIcon from '@mui/icons-material/ChatBubbleOutlineRounded';
import FavoriteBorderRoundedIcon from '@mui/icons-material/FavoriteBorderRounded';
import ShareRoundedIcon from '@mui/icons-material/ShareRounded';
import Button from '@mui/material/Button';
import ImageList from '@mui/material/ImageList';
import ImageListItem from '@mui/material/ImageListItem';

export default function Posts({ posts }) {

    return (
        <div>
            <ul>
                <div style={{ width: '100%' }}>
                    <Box sx={{ display: 'flex', justifyContent: 'center'}}>
                        <div style={{ width: '75%' }}>
                        {posts.map((post) => (
                            <li style={{ border: '1px solid grey', borderRadius: '12px', margin: "10px", padding: "10px" }}>
                                <Box sx={{ display: 'flex', justifyContent: 'start', alignItems: 'center'}}>
                                <Avatar alt={post.userName} src={post.userAvatar}/>
                                <h4 style={{ paddingLeft:'20px', paddingRight: '20px' }}>{post.userName}</h4>
                                <p style={{ color: 'grey', fontSize: '12px' }}>{post.timestamp}</p>
                                </Box>
                                <Box>
                                <p style={{ display: 'block', width: '100%', margin: '0'}}>{post.text}</p>
                                </Box>
                                <Box sx={{ my: 1, display: 'flex', justifyContent: 'end', alignItems: 'center'}}>
                                    <IconButton><ChatBubbleOutlineRoundedIcon/></IconButton>
                                    <IconButton><FavoriteBorderRoundedIcon/></IconButton>
                                    <IconButton><ShareRoundedIcon/></IconButton>
                                </Box>
                                <Box><Button href={post.link} variant="outlined">Link</Button></Box>
                                <Box>
                                <ImageList sx={{ width: 500, height: 450 }} cols={3} rowHeight={164}>
                                    {itemData.map((item) => (
                                    <ImageListItem key={item.img}>
                                        <img
                                            src={`${item.img}?w=164&h=164&fit=crop&auto=format`}
                                            srcSet={`${item.img}?w=164&h=164&fit=crop&auto=format&dpr=2 2x`}
                                            alt={item.title}
                                            loading="lazy"
                                        />
                                    </ImageListItem>
                                    ))}
                                </ImageList>
                                </Box>
                            </li>
                        ))}
                        </div>
                    </Box>
                </div>
            </ul>
        </div>
    )
}

const itemData = [
    {
      img: 'https://images.unsplash.com/photo-1523217582562-09d0def993a6',
      title: 'House',
    },
    {
      img: 'https://images.unsplash.com/photo-1615874694520-474822394e73',
      title: 'Living Room',
    },
    {
      img: 'https://images.unsplash.com/photo-1616594039964-ae9021a400a0',
      title: 'Bedroom',
    },
    {
      img: 'https://images.unsplash.com/photo-1616486886892-ff366aa67ba4',
      title: 'Dining Room',
    },
    {
      img: 'https://images.unsplash.com/photo-1521783593447-5702b9bfd267',
      title: 'Bathroom',
    }
  ];

export async function getServerSideProps() {
    try {
        const client = await clientPromise;
        const db = client.db("abode-app");

        const posts = await db
            .collection("posts")
            .find({})
            .sort({ metacritic: -1 })
            .limit(20)
            .toArray();

        return {
            props: { posts: JSON.parse(JSON.stringify(posts)) },
        };
    } catch (e) {
        console.error(e);
    }
}
</code>```

I have tried loading the images one by one and they work, but prefer to loop over them.

Title: Defining MongoDB Image Array in Next JS

Body:
in the following code, how do I define itemData as post.images[i]?

import clientPromise from "../lib/mongodb";
import Box from '@mui/material/Box';
import Avatar from '@mui/material/Avatar';
import IconButton from '@mui/material/IconButton';
import ChatBubbleOutlineRoundedIcon from '@mui/icons-material/ChatBubbleOutlineRounded';
import FavoriteBorderRoundedIcon from '@mui/icons-material/FavoriteBorderRounded';
import ShareRoundedIcon from '@mui/icons-material/ShareRounded';
import Button from '@mui/material/Button';
import ImageList from '@mui/material/ImageList';
import ImageListItem from '@mui/material/ImageListItem';

export default function Posts({ posts }) {

    return (

                    <Box sx={{ display: 'flex', justifyContent: 'center'}}>

                        {posts.map((post) => (

                                <Box sx={{ display: 'flex', justifyContent: 'start', alignItems: 'center'}}>
                                <Avatar alt={post.userName} src={post.userAvatar}/>

{post.userName}

{post.timestamp}

                                </Box>
                                <Box>

{post.text}

                                </Box>
                                <Box sx={{ my: 1, display: 'flex', justifyContent: 'end', alignItems: 'center'}}>
                                    <IconButton><ChatBubbleOutlineRoundedIcon/></IconButton>
                                    <IconButton><FavoriteBorderRoundedIcon/></IconButton>
                                    <IconButton><ShareRoundedIcon/></IconButton>
                                </Box>
                                <Box><Button href={post.link} variant="outlined">Link</Button></Box>
                                <Box>
                                <ImageList sx={{ width: 500, height: 450 }} cols={3} rowHeight={164}>
                                    {itemData.map((item) => (
                                    <ImageListItem key={item.img}>
                                        <img
                                            src={`${item.img}?w=164&h=164&fit=crop&auto=format`}
                                            srcSet={`${item.img}?w=164&h=164&fit=crop&auto=format&dpr=2 2x`}
                                            alt={item.title}
                                            loading="lazy"
                                        />
                                    </ImageListItem>
                                    ))}
                                </ImageList>
                                </Box>

                        ))}

                    </Box>

    )
}

const itemData = [
    {
      img: 'https://images.unsplash.com/photo-1523217582562-09d0def993a6',
      title: 'House',
    },
    {
      img: 'https://images.unsplash.com/photo-1615874694520-474822394e73',
      title: 'Living Room',
    },
    {
      img: 'https://images.unsplash.com/photo-1616594039964-ae9021a400a0',
      title: 'Bedroom',
    },
    {
      img: 'https://images.unsplash.com/photo-1616486886892-ff366aa67ba4',
      title: 'Dining Room',
    },
    {
      img: 'https://images.unsplash.com/photo-1521783593447-5702b9bfd267',
      title: 'Bathroom',
    }
  ];

export async function getServerSideProps() {
    try {
        const client = await clientPromise;
        const db = client.db("abode-app");

        const posts = await db
            .collection("posts")
            .find({})
            .sort({ metacritic: -1 })
            .limit(20)
            .toArray();

        return {
            props: { posts: JSON.parse(JSON.stringify(posts)) },
        };
    } catch (e) {
        console.error(e);
    }
}

I have tried loading the images one by one and they work, but prefer to loop over them.


问:
How to reference a selected tap after making a filter?
I built a system of dynamic taps with the ngx-bootstrap library when I click on a tap it allows me to view certain graphs my problem is that I want it to work with filters but when I click the button that is supposed to do the  it loses the reference of the selected tap can someone help me improve this or tell me how I can do it so that I don't lose the reference.

`I tried to search in the library where I took the tabs but there is nothing that helps me to solvehttps://valor-software.com/ngx-bootstrap/#/`

```<code>

        <tabset>
                            <tab heading="__" style="width: 100px; "><button (click)="filtroDelMapa(false)" class="btn btn-primary btn-file btn-cons btn-lg reporte-margin" style="margin: 0px 710px">Cargar Mapa con todas las acciones</button></tab>
                            <tab *ngFor="let tabz of tabs" [heading]="tabz.content" [active]="tabz.active" (select)="tabz.active = true;onSelect(tabz?.title)" (deselect)="tabz.active = false" [disabled]="tabz.disabled" [customClass]="tabz.customClass">
                                <div class="row">
                                    <div class="col-md-12 col-sm-12 col-xs-12" *ngFor="let accion of dataForChartsAccionesServicios | buscadorgrafica:tabz?.title" onchange="">

                                        <div *ngIf="definirSiHayDatos.length>0">

                                            <div echarts [options]="accion.options" class="demo-chart"></div>
                                            <div *ngIf="accion.name" style="position: relative;
                                                        left: 50px;
                                                        bottom: 50px;">
                                                <span>{{accion.name}}</span>
                                            </div>
                                        </div>
                                        <div class="sample-bar-chart demo-chart" *ngIf="definirSiHayDatos.length==0">
                                            <span>{{accion.accion2}}</span>
                                            <p>No se encontraron datos</p>
                                        </div>
                                    </div>
                                    <button (click)="filtroDelMapa(tabz?.title,true)" class="btn btn-primary btn-file btn-cons btn-lg reporte-margin" style="margin: 0px 787px;">Cargar Mapa</button>
                                </div>
                            </tab>
                        </tabset>

</code>```

Body:
I built a system of dynamic taps with the ngx-bootstrap library when I click on a tap it allows me to view certain graphs my problem is that I want it to work with filters but when I click the button that is supposed to do the  it loses the reference of the selected tap can someone help me improve this or tell me how I can do it so that I don't lose the reference.

`I tried to search in the library where I took the tabs but there is nothing that helps me to solvehttps://valor-software.com/ngx-bootstrap/#/`

        <tabset>
                            <tab heading="__" style="width: 100px; "><button (click)="filtroDelMapa(false)" class="btn btn-primary btn-file btn-cons btn-lg reporte-margin" style="margin: 0px 710px">Cargar Mapa con todas las acciones</button></tab>
                            <tab *ngFor="let tabz of tabs" [heading]="tabz.content" [active]="tabz.active" (select)="tabz.active = true;onSelect(tabz?.title)" (deselect)="tabz.active = false" [disabled]="tabz.disabled" [customClass]="tabz.customClass">

0">

                                                {{accion.name}}

                                            {{accion.accion2}}

No se encontraron datos

                                    <button (click)="filtroDelMapa(tabz?.title,true)" class="btn btn-primary btn-file btn-cons btn-lg reporte-margin" style="margin: 0px 787px;">Cargar Mapa</button>

                            </tab>
                        </tabset>


问:
SQL Server Split String function with inline sql error: The multi-part identifier "xyz" could not be bound
I have a simple splitstring function that works fine when I pass a string to be split, but when I pass a value from a query it gives me the error:  The multi-part identifier "xyz" could not be bound.

Here is the sample code with output.

```<code>create table test_a( col_a varchar( 10 ), col_b varchar( 10 ), col_c varchar( 10 ) )
GO
insert into test_a values( 'a', 'b', 'abc,def' )
insert into test_a values( 'c', 'd', 'ghi,jkl' )
insert into test_a values( 'e', 'f', 'mno,pqr' )

select a.col_a, a.col_b, s.item
  from test_a a, dbo.SplitString( 'abc,xyz', N',' ) s
 order by a.col_a, s.item

select a.col_a, a.col_b, s.item
  from test_a a, dbo.SplitString( a.col_c, N',' ) s
 order by a.col_a, s.item
</code>```

With the first select statement I get the correct output:

```<code>col_a   col_b   item
a   b   abc
a   b   xyz
c   d   abc
c   d   xyz
e   f   abc
e   f   xyz
</code>```

When I run the second select, using the value from the table, I get the error:

Msg 4104, Level 16, State 1, Line 70
The multi-part identifier "a.col_c" could not be bound.

How can I join this splitstring function to create a separate record for each string in the test_a table?

Body:
I have a simple splitstring function that works fine when I pass a string to be split, but when I pass a value from a query it gives me the error:  The multi-part identifier "xyz" could not be bound.

Here is the sample code with output.

create table test_a( col_a varchar( 10 ), col_b varchar( 10 ), col_c varchar( 10 ) )
GO
insert into test_a values( 'a', 'b', 'abc,def' )
insert into test_a values( 'c', 'd', 'ghi,jkl' )
insert into test_a values( 'e', 'f', 'mno,pqr' )

select a.col_a, a.col_b, s.item
  from test_a a, dbo.SplitString( 'abc,xyz', N',' ) s
 order by a.col_a, s.item

select a.col_a, a.col_b, s.item
  from test_a a, dbo.SplitString( a.col_c, N',' ) s
 order by a.col_a, s.item

With the first select statement I get the correct output:

col_a   col_b   item
a   b   abc
a   b   xyz
c   d   abc
c   d   xyz
e   f   abc
e   f   xyz

When I run the second select, using the value from the table, I get the error:

Msg 4104, Level 16, State 1, Line 70
The multi-part identifier "a.col_c" could not be bound.

How can I join this splitstring function to create a separate record for each string in the test_a table?


问:
Merging .count and .txt files using readDGE()
I am working with gene transcript counts. I want to merge six .count files and one .txt file so that I can do differential expression analysis in edgeR. I am trying to use readDGE() to do this, but I have also tried merge() and left_join. I am able to get the .count files to merge, but not the .txt file. When I use merge() it tells me the file is too large. When I tried left_join, it altered my data so that each column had the same number (ex: every row in column one = 6, every row in column two = 10, and so on).

Notes on the file formats: each .count file represents one sample and contains 3 columns: the gene name, the transcript counts, and a column that just says ".count". The .txt file has a column for gene names, and then there are 16 columns, where each column represents a sample. When I merge the .count files, it turns out to have the same format as the txt file where the gene names are in column 1 and each subsequent column represents a sample.

The following code merges all the .count file together, but leaves out the .txt file. I added a .count column to the .txt dataframe, but that didn't do anything to solve this problem.

```<code>files <- dir(pattern="*\\.count$")
counts = readDGE(files)
counts=readDGE(samples$countf)$counts
counts
</code>```

Next, I used this code to eliminate repeating row names in each of the data files:

```<code>names <- make.unique(as.character(countsfinal[,1]))
rownames(countsfinal) <- names
countsfinal <- countsfinal[,-1] # get rid of old names
countsfinal <- subset(countsfinal[,-18]) #get rid of a column that just contains ".count"
</code>```

and this code to try to merge them:

```<code>files <- c(countsfinal, ML1,ML2,ML3,MS1,MS2,MS3)
counts = readDGE(files)
counts=readDGE(samples$countf)$counts
counts
</code>```

I get this error message after "counts = readDGE(files)":

```<code>Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
  cannot open file 'c(6, 22, 5, 47, 2, 0, 222, 93, 112, 283, 83, 115, 127, 206, 290, 73, 27, 0, 0, 0, 0, 227, 96, 59, 338, 25, 3, 0, 2, 5, 55, 63, 568, 0, 218, 61, 3, 8, 0, 2, 35, 55, 0, 1, 42, 417, 4, 14, 0, 13, 32, 0, 0, 32, 1421, 68, 94, 1832, 70, 155, 217, 62, 0, 8, 0, 52, 71, 9, 109, 25, 0, 0, 125, 217, 28, 336, 364, 38, 49, 89, 133, 25, 0, 2, 52, 1, 20, 7, 21, 9, 129, 13, 72, 28, 8, 5, 1, 388, 172, 0, 12, 159, 0, 0, 2, 0, 0, 1, 1, 3, 505, 1, 4, 0, 8, 0, 435, 35, 35, 4, 0, 0, 41, 24, 2, 4, 22, 0, 1, 56, 2, 40,
36, 0, 0, 2193, 12, 98, 3, 0, 0, 96, 71, 16, 1, 1083, 3, 0, 0, 159, 218, 11, 4, 263, 9, 68, 296, 20, 174, 0, 444, 67, 9, 26, 0, 1, 31, 7, 3, 60, 9, 6, 0, 18, 21, 6, 5, 0, 0, 0, 55, 12, 21, 0, 22, 16, 8, 3, 0, 0, 130, 13, 66, 0, 4, 2, 1, 4, 112, 1, 0, 0, 0, 159, 4, 2, 364, 0, 91, 2, 50, 0, 94, 118, 0, 10, 15, 1, 2, 178, 3, 57, 308, 31, 0, 3, 164, 109, 147, 134, 160, 2, 0, 7, 0, 0, 0, 0, 1, 1, 0, 272, 23, 27, 218, 0, 1, 423, 120, 449, 1026, 125, 8, 0, 1372, 86, 231, 143, 47, 10 [... truncated]
</code>```

I can open all the files I'm trying to merge directly from the environment. I also checked that my files are all in the same directory that I'm working in. Everything I found online says this error is because R can't find the files I'm trying to merge, but I don't understand how it lost them when they're stored in the environment.

Next, I tried merge():

```<code>counts <- merge(countsfinal,ML1, all.x = TRUE, all.y = TRUE)
</code>```

and get this error message:

```<code>Error: cannot allocate vector of size 1.9 Gb
</code>```

I tried cleaning out my environment to only contain the necessary files, but that didn't fix this problem.

Then, I tried left_join (a function I've never used before and honestly don't understand even after watching a tutorial):

```<code>counts <- left_join(countsfinal,ML1, by = c("MSV13HK" = "V2")) #MSV13HK is the last column in the first df, V2 is the only column with transcript counts in the second df
</code>```

I didn't get an error message, but it completely changed my data to make it uniform.

```<code>MLV01SP MLV02HK MLV05HK MLV05SP MLV10HK MLV16HK MLV16SP MSV01HK MSV01SP MSV03HK MSV03SP
1        6       4      30      27       6      20      20       2       2       7       6
2        6       4      30      27       6      20      20       2       2       7       6
3        6       4      30      27       6      20      20       2       2       7       6
4        6       4      30      27       6      20      20       2       2       7       6
5        6       4      30      27       6      20      20       2       2       7       6
6        6       4      30      27       6      20      20       2       2       7       6
7        6       4      30      27       6      20      20       2       2       7       6
8        6       4      30      27       6      20      20       2       2       7       6
9        6       4      30      27       6      20      20       2       2       7       6
10       6       4      30      27       6      20      20       2       2       7       6
11       6       4      30      27       6      20      20       2       2       7       6
12       6       4      30      27       6      20      20       2       2       7       6
</code>```

I've also tried variations of subset() to try to move one column over at a time, but I can't seem to get it to format correctly:

```<code>ML01SP <- subset(countsfinal, [,2])
Error: unexpected '[' in "ML01SP <- subset(countsfinal, ["
</code>```
```<code>ML01SP <- subset(countsfinal, ML01SP)
Error in subset.data.frame(countsfinal, ML01SP) :
  'subset' must be logical
</code>```
```<code>names <- make.unique(as.character(countsfinal[,1]))
rownames(countsfinal) <- names
countsfinal <- countsfinal[,-1] # get rid of old names
countsfinal <- subset(countsfinal[,-18]) #get rid of a column that just contains ".count"
</code>```0
```<code>names <- make.unique(as.character(countsfinal[,1]))
rownames(countsfinal) <- names
countsfinal <- countsfinal[,-1] # get rid of old names
countsfinal <- subset(countsfinal[,-18]) #get rid of a column that just contains ".count"
</code>```1

I just tried this:

```<code>names <- make.unique(as.character(countsfinal[,1]))
rownames(countsfinal) <- names
countsfinal <- countsfinal[,-1] # get rid of old names
countsfinal <- subset(countsfinal[,-18]) #get rid of a column that just contains ".count"
</code>```2

And it instead of adding a column onto the end of the table, it concatenated all of my samples from the first df and added one column from the second df. It basically reduced my table from 16 columns down to three.
enter image description here

Merging this data should be the last big hurdle in a class project I'm working on. I already have the script written out for the actual analysis, and was able to run through the script on each of the datasets independently. I spent ~4 hours trying to merge the data yesterday and another two this morning. Please help!!

Body:
I am working with gene transcript counts. I want to merge six .count files and one .txt file so that I can do differential expression analysis in edgeR. I am trying to use readDGE() to do this, but I have also tried merge() and left_join. I am able to get the .count files to merge, but not the .txt file. When I use merge() it tells me the file is too large. When I tried left_join, it altered my data so that each column had the same number (ex: every row in column one = 6, every row in column two = 10, and so on).

Notes on the file formats: each .count file represents one sample and contains 3 columns: the gene name, the transcript counts, and a column that just says ".count". The .txt file has a column for gene names, and then there are 16 columns, where each column represents a sample. When I merge the .count files, it turns out to have the same format as the txt file where the gene names are in column 1 and each subsequent column represents a sample.

The following code merges all the .count file together, but leaves out the .txt file. I added a .count column to the .txt dataframe, but that didn't do anything to solve this problem.

files <- dir(pattern="*\\.count$")
counts = readDGE(files)
counts=readDGE(samples$countf)$counts
counts

Next, I used this code to eliminate repeating row names in each of the data files:

names <- make.unique(as.character(countsfinal[,1]))
rownames(countsfinal) <- names
countsfinal <- countsfinal[,-1] # get rid of old names
countsfinal <- subset(countsfinal[,-18]) #get rid of a column that just contains ".count"

and this code to try to merge them:

files <- c(countsfinal, ML1,ML2,ML3,MS1,MS2,MS3)
counts = readDGE(files)
counts=readDGE(samples$countf)$counts
counts

I get this error message after "counts = readDGE(files)":

Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
  cannot open file 'c(6, 22, 5, 47, 2, 0, 222, 93, 112, 283, 83, 115, 127, 206, 290, 73, 27, 0, 0, 0, 0, 227, 96, 59, 338, 25, 3, 0, 2, 5, 55, 63, 568, 0, 218, 61, 3, 8, 0, 2, 35, 55, 0, 1, 42, 417, 4, 14, 0, 13, 32, 0, 0, 32, 1421, 68, 94, 1832, 70, 155, 217, 62, 0, 8, 0, 52, 71, 9, 109, 25, 0, 0, 125, 217, 28, 336, 364, 38, 49, 89, 133, 25, 0, 2, 52, 1, 20, 7, 21, 9, 129, 13, 72, 28, 8, 5, 1, 388, 172, 0, 12, 159, 0, 0, 2, 0, 0, 1, 1, 3, 505, 1, 4, 0, 8, 0, 435, 35, 35, 4, 0, 0, 41, 24, 2, 4, 22, 0, 1, 56, 2, 40,
36, 0, 0, 2193, 12, 98, 3, 0, 0, 96, 71, 16, 1, 1083, 3, 0, 0, 159, 218, 11, 4, 263, 9, 68, 296, 20, 174, 0, 444, 67, 9, 26, 0, 1, 31, 7, 3, 60, 9, 6, 0, 18, 21, 6, 5, 0, 0, 0, 55, 12, 21, 0, 22, 16, 8, 3, 0, 0, 130, 13, 66, 0, 4, 2, 1, 4, 112, 1, 0, 0, 0, 159, 4, 2, 364, 0, 91, 2, 50, 0, 94, 118, 0, 10, 15, 1, 2, 178, 3, 57, 308, 31, 0, 3, 164, 109, 147, 134, 160, 2, 0, 7, 0, 0, 0, 0, 1, 1, 0, 272, 23, 27, 218, 0, 1, 423, 120, 449, 1026, 125, 8, 0, 1372, 86, 231, 143, 47, 10 [... truncated]

I can open all the files I'm trying to merge directly from the environment. I also checked that my files are all in the same directory that I'm working in. Everything I found online says this error is because R can't find the files I'm trying to merge, but I don't understand how it lost them when they're stored in the environment.

Next, I tried merge():

counts <- merge(countsfinal,ML1, all.x = TRUE, all.y = TRUE)

and get this error message:

Error: cannot allocate vector of size 1.9 Gb

I tried cleaning out my environment to only contain the necessary files, but that didn't fix this problem.

Then, I tried left_join (a function I've never used before and honestly don't understand even after watching a tutorial):

counts <- left_join(countsfinal,ML1, by = c("MSV13HK" = "V2")) #MSV13HK is the last column in the first df, V2 is the only column with transcript counts in the second df

I didn't get an error message, but it completely changed my data to make it uniform.

MLV01SP MLV02HK MLV05HK MLV05SP MLV10HK MLV16HK MLV16SP MSV01HK MSV01SP MSV03HK MSV03SP
1        6       4      30      27       6      20      20       2       2       7       6
2        6       4      30      27       6      20      20       2       2       7       6
3        6       4      30      27       6      20      20       2       2       7       6
4        6       4      30      27       6      20      20       2       2       7       6
5        6       4      30      27       6      20      20       2       2       7       6
6        6       4      30      27       6      20      20       2       2       7       6
7        6       4      30      27       6      20      20       2       2       7       6
8        6       4      30      27       6      20      20       2       2       7       6
9        6       4      30      27       6      20      20       2       2       7       6
10       6       4      30      27       6      20      20       2       2       7       6
11       6       4      30      27       6      20      20       2       2       7       6
12       6       4      30      27       6      20      20       2       2       7       6

I've also tried variations of subset() to try to move one column over at a time, but I can't seem to get it to format correctly:

ML01SP <- subset(countsfinal, [,2])
Error: unexpected '[' in "ML01SP <- subset(countsfinal, ["

ML01SP <- subset(countsfinal, ML01SP)
Error in subset.data.frame(countsfinal, ML01SP) :
  'subset' must be logical

ML01SP <- subset(countsfinal, "ML01SP")
Error in subset.data.frame(countsfinal, "ML01SP") :
  'subset' must be logical

 ML01SP <- subset(countsfinal[,2])
Error in subset.default(countsfinal[, 2]) :
  argument "subset" is missing, with no default

I just tried this:

ML1 <- ML1$V2
length(countsfinal) <- length(ML1) #to make the df equal lengths, they were off by one row
countsfinal_ML1 <- cbind(countsfinal, ML1)

And it instead of adding a column onto the end of the table, it concatenated all of my samples from the first df and added one column from the second df. It basically reduced my table from 16 columns down to three.
enter image description here

Merging this data should be the last big hurdle in a class project I'm working on. I already have the script written out for the actual analysis, and was able to run through the script on each of the datasets independently. I spent ~4 hours trying to merge the data yesterday and another two this morning. Please help!!


问:
PIPE Function dplyr to sum all column values to the year column not worked
I have a table with Year column from 1962 to 2010 and then Columns from Abraxas_grossulariata to Zeuzera_pyrina.
I want to sum the rows for each year and to have one final value of the sum of this.

I tried the code:

```<code>TolnaSum <- Tolna %>% group_by(Year) %>% summarise(count=sum(c(Abraxas_grossulariata:Zeuzera_pyrina)))
</code>```

This produced a table I wanted but has not summed it together correctly.

Body:
I have a table with Year column from 1962 to 2010 and then Columns from Abraxas_grossulariata to Zeuzera_pyrina.
I want to sum the rows for each year and to have one final value of the sum of this.

I tried the code:

TolnaSum <- Tolna %>% group_by(Year) %>% summarise(count=sum(c(Abraxas_grossulariata:Zeuzera_pyrina)))

This produced a table I wanted but has not summed it together correctly.


问:
How to add a column in pandas with values by calling a function with argument from another column?
I have a DataFrame with supplier codes.

supplier_code

V1001

V1002

V1003

I want to add a new column "Supplier Balance" by passing a function with "Supplier Code" as argument.

The function is

```<code>get_balance_on(party_type="Supplier",   party="V1001")
</code>```

The above function returns the suppliers balance.

I tried this, but gives me an error related to index.

```<code>df["balance"] = get_balance_on(party_type="Supplier",   party=df["supplier_code"])
</code>```

Body:
I have a DataFrame with supplier codes.

supplier_code

V1001

V1002

V1003

I want to add a new column "Supplier Balance" by passing a function with "Supplier Code" as argument.

The function is

get_balance_on(party_type="Supplier",   party="V1001")

The above function returns the suppliers balance.

I tried this, but gives me an error related to index.

df["balance"] = get_balance_on(party_type="Supplier",   party=df["supplier_code"])


问:
how write a code to track weekly income to pay a seller in e-commerce marketplace app using node js
I have built an E-commerce marketplace for sellers to sell their products but how can I track a weekly income to pay the seller?

This is the code I wrote to track a weekly income (payout?) but it does not work I don't know how to track a weekly payment to pay a seller.

```<code>  const seller = await Seller.findById(req.seller.id);
   if (!seller) {
return res.status(400).json("Seller not found")
}
const orders = await Order.find({ orderItems: { $elemMatch: { seller: req.seller.id } } });
if (!orders) {
return res.status(200).json("You don't have any order");
};
let datefor = new Date(seller.startAt);
// let joinUpdate = new Date(seller.startAt);
let PreviousPaymentdAt = new Date(seller.paymentDateAt);
let startatForPrev = new Date(datefor.setDate(datefor.getDate() - 14));
let paymentDateAt = new Date(PreviousPaymentdAt.setDate(PreviousPaymentdAt.getDate() - 14));
let now = new Date();

let orderItems;
let Sales = 0;
let Amount = 0;
let commission = 0;

const orderall = await Promise.all(
orders.map((order) =\> {
if (order.createdAt \>= startatForPrev || order.deliveredAt \>= startatForPrev) {
if (order.createdAt \<= paymentDateAt || order.deliveredAt \<= paymentDateAt) {
if (order.orderStatus == "Delivered") {
orderItems = order.orderItems;
orderItems.map((items) =\> {
Sales += items.price \* items.quantity;
if (items.subcategories == "Women's Fashion") {
commission += (items.price \* items.quantity) \* 10.2 / 100;
Amount += items.price \* items.quantity - (items.price \* items.quantity) \* 13.2 / 100;
}
else if (items.subcategories == "Men's Fashion") {
commission += (items.price \* items.quantity) \* 10.2 / 100;
Amount += items.price \* items.quantity - (items.price \* items.quantity) \* 13.2 / 100;
}
else if (items.subcategories == "Kid's Fashion") {
commission += (items.price \* items.quantity) \* 10.2 / 100;
Amount += items.price \* items.quantity - (items.price \* items.quantity) \* 13.2 / 100;
}
else if (items.subcategories == "Books") {
commission += (items.price \* items.quantity) \* 8.2 / 100;
Amount += items.price \* items.quantity - (items.price \* items.quantity) \* 13.2 / 100;
}
else if (items.subcategories == "Beauty and Personal Care") {
commission += (items.price \* items.quantity) \* 9.20 / 100;
Amount += items.price \* items.quantity - (items.price \* items.quantity) \* 10.20 / 100;
}

            });
            return order;
          }
        }
      }
    })

)

let items = orderall.filter(x =\> x !== undefined);
let amount = Amount.toFixed();
let marketplace = commission.toFixed();
res.status(200).json({ success: true, Sales, items, amount, marketplace });

}
);
</code>```

Body:
I have built an E-commerce marketplace for sellers to sell their products but how can I track a weekly income to pay the seller?

This is the code I wrote to track a weekly income (payout?) but it does not work I don't know how to track a weekly payment to pay a seller.

  const seller = await Seller.findById(req.seller.id);
   if (!seller) {
return res.status(400).json("Seller not found")
}
const orders = await Order.find({ orderItems: { $elemMatch: { seller: req.seller.id } } });
if (!orders) {
return res.status(200).json("You don't have any order");
};
let datefor = new Date(seller.startAt);
// let joinUpdate = new Date(seller.startAt);
let PreviousPaymentdAt = new Date(seller.paymentDateAt);
let startatForPrev = new Date(datefor.setDate(datefor.getDate() - 14));
let paymentDateAt = new Date(PreviousPaymentdAt.setDate(PreviousPaymentdAt.getDate() - 14));
let now = new Date();

let orderItems;
let Sales = 0;
let Amount = 0;
let commission = 0;

const orderall = await Promise.all(
orders.map((order) =\> {
if (order.createdAt \>= startatForPrev || order.deliveredAt \>= startatForPrev) {
if (order.createdAt \<= paymentDateAt || order.deliveredAt \<= paymentDateAt) {
if (order.orderStatus == "Delivered") {
orderItems = order.orderItems;
orderItems.map((items) =\> {
Sales += items.price \* items.quantity;
if (items.subcategories == "Women's Fashion") {
commission += (items.price \* items.quantity) \* 10.2 / 100;
Amount += items.price \* items.quantity - (items.price \* items.quantity) \* 13.2 / 100;
}
else if (items.subcategories == "Men's Fashion") {
commission += (items.price \* items.quantity) \* 10.2 / 100;
Amount += items.price \* items.quantity - (items.price \* items.quantity) \* 13.2 / 100;
}
else if (items.subcategories == "Kid's Fashion") {
commission += (items.price \* items.quantity) \* 10.2 / 100;
Amount += items.price \* items.quantity - (items.price \* items.quantity) \* 13.2 / 100;
}
else if (items.subcategories == "Books") {
commission += (items.price \* items.quantity) \* 8.2 / 100;
Amount += items.price \* items.quantity - (items.price \* items.quantity) \* 13.2 / 100;
}
else if (items.subcategories == "Beauty and Personal Care") {
commission += (items.price \* items.quantity) \* 9.20 / 100;
Amount += items.price \* items.quantity - (items.price \* items.quantity) \* 10.20 / 100;
}

            });
            return order;
          }
        }
      }
    })

)

let items = orderall.filter(x =\> x !== undefined);
let amount = Amount.toFixed();
let marketplace = commission.toFixed();
res.status(200).json({ success: true, Sales, items, amount, marketplace });

}
);