Nginx .Net Core POST 400 Bad Request

oknwwptz  于 2023-10-17  发布在  Nginx
关注(0)|答案(1)|浏览(292)

我有一个应用程序,位于我本地Docker上的一个插件中。当我通过POST提交表单时,我得到一个400 Bad Request错误。
我注意到它没有转到我的.NET Core应用程序。错误是由nginx造成的。
我设法提取了一些显示错误请求的日志。但我看不出原因:

  1. Server: nginx
  2. Date: Sat, 22 Oct 2022 16:45:31 GMT
  3. Content-Type: application/json; charset=utf-8
  4. Transfer-Encoding: chunked
  5. Connection: keep-alive
  6. Cache-Control: no-store, no-cache
  7. Content-Encoding: gzip
  8. Vary: Accept-Encoding
  9. Access-Control-Allow-Origin: *
  10. X-Frame-Options: SAMEORIGIN
  11. X-XSS-Protection: 1; mode=block
  12. 2022/10/22 16:45:31 [debug] 25#25: *3 write new buf t:1 f:0 000055E39DBBB450, pos 000055E39DBBB450, size: 346 file: 0, size: 0
  13. 2022/10/22 16:45:31 [debug] 25#25: *3 http write filter: l:0 f:0 s:346
  14. 2022/10/22 16:45:31 [debug] 25#25: *3 http cacheable: 0
  15. 2022/10/22 16:45:31 [debug] 25#25: *3 http proxy filter init s:200 h:0 c:0 l:-1
  16. 2022/10/22 16:45:31 [debug] 25#25: *3 http upstream process upstream
  17. 2022/10/22 16:45:31 [debug] 25#25: *3 pipe read upstream: 0
  18. 2022/10/22 16:45:31 [debug] 25#25: *3 pipe preread: 90
  19. 2022/10/22 16:45:31 [debug] 25#25: *3 pipe buf free s:0 t:1 f:0 000055E39DC2DEF0, pos 000055E39DC2DFDC, size: 90 file: 0, size: 0
  20. 2022/10/22 16:45:31 [debug] 25#25: *3 pipe length: -1
  21. 2022/10/22 16:45:31 [debug] 25#25: *3 pipe write downstream: 1
  22. 2022/10/22 16:45:31 [debug] 25#25: *3 pipe write busy: 0
  23. 2022/10/22 16:45:31 [debug] 25#25: *3 pipe write: out:0000000000000000, f:0
  24. 2022/10/22 16:45:31 [debug] 25#25: *3 pipe read upstream: 0
  25. 2022/10/22 16:45:31 [debug] 25#25: *3 pipe buf free s:0 t:1 f:0 000055E39DC2DEF0, pos 000055E39DC2DFDC, size: 90 file: 0, size: 0
  26. 2022/10/22 16:45:31 [debug] 25#25: *3 pipe length: -1
  27. 2022/10/22 16:45:31 [debug] 25#25: *3 event timer: 21, old: 8980200, new: 8980256
  28. 2022/10/22 16:45:31 [debug] 25#25: *3 http upstream request: "/Manage/Message/AnnouncementAttachment/Search?"
  29. 2022/10/22 16:45:31 [debug] 25#25: *3 http upstream dummy handler
  30. 2022/10/22 16:45:31 [debug] 25#25: *3 http upstream request: "/Manage/Message/AnnouncementAttachment/Search?"
  31. 2022/10/22 16:45:31 [debug] 25#25: *3 http upstream process upstream
  32. 2022/10/22 16:45:31 [debug] 25#25: *3 pipe read upstream: 1
  33. 2022/10/22 16:45:31 [debug] 25#25: *3 readv: eof:1, avail:-1
  34. 2022/10/22 16:45:31 [debug] 25#25: *3 readv: 1, last:16058
  35. 2022/10/22 16:45:31 [debug] 25#25: *3 pipe recv chain: 0
  36. 2022/10/22 16:45:31 [debug] 25#25: *3 pipe buf free s:0 t:1 f:0 000055E39DC2DEF0, pos 000055E39DC2DFDC, size: 90 file: 0, size: 0
  37. 2022/10/22 16:45:31 [debug] 25#25: *3 pipe length: -1
  38. 2022/10/22 16:45:31 [debug] 25#25: *3 input buf #0
  39. 2022/10/22 16:45:31 [debug] 25#25: *3 pipe write downstream: 1
  40. 2022/10/22 16:45:31 [debug] 25#25: *3 pipe write downstream flush in
  41. 2022/10/22 16:45:31 [debug] 25#25: *3 http output filter "/Manage/Message/AnnouncementAttachment/Search?"
  42. 2022/10/22 16:45:31 [debug] 25#25: *3 http copy filter: "/Manage/Message/AnnouncementAttachment/Search?"
  43. 2022/10/22 16:45:31 [debug] 25#25: *3 http postpone filter "/Manage/Message/AnnouncementAttachment/Search?" 000055E39DBC47F0
  44. 2022/10/22 16:45:31 [debug] 25#25: *3 http chunk: 90
  45. 2022/10/22 16:45:31 [debug] 25#25: *3 write old buf t:1 f:0 000055E39DBBB450, pos 000055E39DBBB450, size: 346 file: 0, size: 0
  46. 2022/10/22 16:45:31 [debug] 25#25: *3 write new buf t:1 f:0 000055E39DBC4C28, pos 000055E39DBC4C28, size: 4 file: 0, size: 0
  47. 2022/10/22 16:45:31 [debug] 25#25: *3 write new buf t:1 f:0 000055E39DC2DEF0, pos 000055E39DC2DFDC, size: 90 file: 0, size: 0
  48. 2022/10/22 16:45:31 [debug] 25#25: *3 write new buf t:0 f:0 0000000000000000, pos 000055E39CE886FA, size: 2 file: 0, size: 0
  49. 2022/10/22 16:45:31 [debug] 25#25: *3 http write filter: l:0 f:0 s:442
  50. 2022/10/22 16:45:31 [debug] 25#25: *3 http copy filter: 0 "/Manage/Message/AnnouncementAttachment/Search?"
  51. 2022/10/22 16:45:31 [debug] 25#25: *3 pipe write downstream done
  52. 2022/10/22 16:45:31 [debug] 25#25: *3 event timer: 21, old: 8980200, new: 8980256
  53. 2022/10/22 16:45:31 [debug] 25#25: *3 http upstream exit: 0000000000000000
  54. 2022/10/22 16:45:31 [debug] 25#25: *3 finalize http upstream request: 0
  55. 2022/10/22 16:45:31 [debug] 25#25: *3 finalize http proxy request
  56. 2022/10/22 16:45:31 [debug] 25#25: *3 free rr peer 1 0
  57. 2022/10/22 16:45:31 [debug] 25#25: *3 close http upstream connection: 21
  58. 2022/10/22 16:45:31 [debug] 25#25: *3 free: 000055E39DBB4010, unused: 48
  59. 2022/10/22 16:45:31 [debug] 25#25: *3 event timer del: 21: 8980200
  60. 2022/10/22 16:45:31 [debug] 25#25: *3 reusable connection: 0
  61. 2022/10/22 16:45:31 [debug] 25#25: *3 http upstream temp fd: -1
  62. 2022/10/22 16:45:31 [debug] 25#25: *3 http output filter "/Manage/Message/AnnouncementAttachment/Search?"
  63. 2022/10/22 16:45:31 [debug] 25#25: *3 http copy filter: "/Manage/Message/AnnouncementAttachment/Search?"
  64. 2022/10/22 16:45:31 [debug] 25#25: *3 http postpone filter "/Manage/Message/AnnouncementAttachment/Search?" 00007FFD0E8F95E0
  65. 2022/10/22 16:45:31 [debug] 25#25: *3 http chunk: 0
  66. 2022/10/22 16:45:31 [debug] 25#25: *3 write old buf t:1 f:0 000055E39DBBB450, pos 000055E39DBBB450, size: 346 file: 0, size: 0
  67. 2022/10/22 16:45:31 [debug] 25#25: *3 write old buf t:1 f:0 000055E39DBC4C28, pos 000055E39DBC4C28, size: 4 file: 0, size: 0
  68. 2022/10/22 16:45:31 [debug] 25#25: *3 write old buf t:1 f:0 000055E39DC2DEF0, pos 000055E39DC2DFDC, size: 90 file: 0, size: 0
  69. 2022/10/22 16:45:31 [debug] 25#25: *3 write old buf t:0 f:0 0000000000000000, pos 000055E39CE886FA, size: 2 file: 0, size: 0
  70. 2022/10/22 16:45:31 [debug] 25#25: *3 write new buf t:0 f:0 0000000000000000, pos 000055E39CE886F7, size: 5 file: 0, size: 0
  71. 2022/10/22 16:45:31 [debug] 25#25: *3 http write filter: l:1 f:0 s:447
  72. 2022/10/22 16:45:31 [debug] 25#25: *3 http write filter limit 2097152
  73. 2022/10/22 16:45:31 [debug] 25#25: *3 writev: 447 of 447
  74. 2022/10/22 16:45:31 [debug] 25#25: *3 http write filter 0000000000000000
  75. 2022/10/22 16:45:31 [debug] 25#25: *3 http copy filter: 0 "/Manage/Message/AnnouncementAttachment/Search?"
  76. 2022/10/22 16:45:31 [debug] 25#25: *3 http finalize request: 0, "/Manage/Message/AnnouncementAttachment/Search?" a:1, c:1
  77. 2022/10/22 16:45:31 [debug] 25#25: *3 set http keepalive handler
  78. 2022/10/22 16:45:31 [debug] 25#25: *3 http close request
  79. 2022/10/22 16:45:31 [debug] 25#25: *3 http log handler
  80. 2022/10/22 16:45:31 [debug] 25#25: *3 free: 000055E39DC2DEF0
  81. 2022/10/22 16:45:31 [debug] 25#25: *3 free: 000055E39DBB0DE0, unused: 2
  82. 2022/10/22 16:45:31 [debug] 25#25: *3 free: 000055E39DBC3C50, unused: 0
  83. 2022/10/22 16:45:31 [debug] 25#25: *3 free: 000055E39DBBA420, unused: 8
  84. 2022/10/22 16:45:31 [debug] 25#25: *3 free: 000055E39DBBB430, unused: 2844
  85. 2022/10/22 16:45:31 [debug] 25#25: *3 free: 000055E39DB9A1B0
  86. 2022/10/22 16:45:31 [debug] 25#25: *3 hc free: 0000000000000000
  87. 2022/10/22 16:45:31 [debug] 25#25: *3 hc busy: 000055E39DBB4368 1
  88. 2022/10/22 16:45:31 [debug] 25#25: *3 free: 000055E39DC1DEE0
  89. 2022/10/22 16:45:31 [debug] 25#25: *3 reusable connection: 1
  90. 2022/10/22 16:45:31 [debug] 25#25: *3 event timer add: 20: 65000:8985256
  91. 2022/10/22 16:45:33 [debug] 25#25: *3 http keepalive handler
  92. 2022/10/22 16:45:33 [debug] 25#25: *3 malloc: 000055E39DB9A1B0:1024
  93. 2022/10/22 16:45:33 [debug] 25#25: *3 recv: eof:0, avail:-1
  94. 2022/10/22 16:45:33 [debug] 25#25: *3 recv: fd:20 1024 of 1024
  95. 2022/10/22 16:45:33 [debug] 25#25: *3 recv: avail:5158
  96. 2022/10/22 16:45:33 [debug] 25#25: *3 reusable connection: 0
  97. 2022/10/22 16:45:33 [debug] 25#25: *3 posix_memalign: 000055E39DBB0DE0:4096 @16
  98. 2022/10/22 16:45:33 [debug] 25#25: *3 event timer del: 20: 8985256
  99. 2022/10/22 16:45:33 [debug] 25#25: *3 http process request line
  100. 2022/10/22 16:45:33 [debug] 25#25: *3 http request line: "POST /Manage/Message/Announcement/Update HTTP/1.1"
  101. 2022/10/22 16:45:33 [debug] 25#25: *3 http uri: "/Manage/Message/Announcement/Update"
  102. 2022/10/22 16:45:33 [debug] 25#25: *3 http args: ""
  103. 2022/10/22 16:45:33 [debug] 25#25: *3 http exten: ""
  104. 2022/10/22 16:45:33 [debug] 25#25: *3 posix_memalign: 000055E39DBC3C50:4096 @16
  105. 2022/10/22 16:45:33 [debug] 25#25: *3 http process request header line
  106. 2022/10/22 16:45:33 [debug] 25#25: *3 http header: "Host: localhost:9190"
  107. 2022/10/22 16:45:33 [debug] 25#25: *3 http header: "Connection: keep-alive"
  108. 2022/10/22 16:45:33 [debug] 25#25: *3 http header: "Content-Length: 2304"
  109. 2022/10/22 16:45:33 [debug] 25#25: *3 http header: "Cache-Control: max-age=0"
  110. 2022/10/22 16:45:33 [debug] 25#25: *3 http header: "sec-ch-ua: "Chromium";v="106", "Google Chrome";v="106", "Not;A=Brand";v="99""
  111. 2022/10/22 16:45:33 [debug] 25#25: *3 http header: "sec-ch-ua-mobile: ?0"
  112. 2022/10/22 16:45:33 [debug] 25#25: *3 http header: "sec-ch-ua-platform: "Windows""
  113. 2022/10/22 16:45:33 [debug] 25#25: *3 http header: "Upgrade-Insecure-Requests: 1"
  114. 2022/10/22 16:45:33 [debug] 25#25: *3 http header: "Origin: http://localhost:9190"
  115. 2022/10/22 16:45:33 [debug] 25#25: *3 http header: "Content-Type: application/x-www-form-urlencoded"
  116. 2022/10/22 16:45:33 [debug] 25#25: *3 http header: "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
  117. 2022/10/22 16:45:33 [debug] 25#25: *3 http header: "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"
  118. 2022/10/22 16:45:33 [debug] 25#25: *3 http header: "Sec-Fetch-Site: same-origin"
  119. 2022/10/22 16:45:33 [debug] 25#25: *3 http header: "Sec-Fetch-Mode: navigate"
  120. 2022/10/22 16:45:33 [debug] 25#25: *3 http header: "Sec-Fetch-User: ?1"
  121. 2022/10/22 16:45:33 [debug] 25#25: *3 http header: "Sec-Fetch-Dest: document"
  122. 2022/10/22 16:45:33 [debug] 25#25: *3 http header: "Referer: http://localhost:9190/Manage/Message/Announcement/Edit/a4f91c12-ebd3-4c98-9544-41d3757770bf"
  123. 2022/10/22 16:45:33 [debug] 25#25: *3 http header: "Accept-Encoding: gzip, deflate, br"
  124. 2022/10/22 16:45:33 [debug] 25#25: *3 http header: "Accept-Language: en-US,en;q=0.9"
  125. 2022/10/22 16:45:33 [debug] 25#25: *3 http alloc large header buffer
  126. 2022/10/22 16:45:33 [debug] 25#25: *3 malloc: 000055E39DC1DEE0:65536
  127. 2022/10/22 16:45:33 [debug] 25#25: *3 http large header alloc: 000055E39DC1DEE0 65536
  128. 2022/10/22 16:45:33 [debug] 25#25: *3 http large header copy: 96
  129. 2022/10/22 16:45:33 [debug] 25#25: *3 recv: eof:0, avail:5158
  130. 2022/10/22 16:45:33 [debug] 25#25: *3 recv: fd:20 5158 of 65440
  131. 2022/10/22 16:45:33 [debug] 25#25: *3 recv: avail:0
  132. 2022/10/22 16:45:33 [debug] 25#25: *3 http header: "Cookie: SDR-Application-AFT=CfDJ8FbhNDhYUKNOn7v_odQ8fUMEWWc8ux9dasp9_SfryYplsUPdrV7Z2zTvjYcuzfecjPsjKDAVhDfYiEUrFxBrAOakXhoJDIr8mFevfahkdJPzzCntkqrgt8KY4aIRD6olFZAlHF83TPH3fbL4EHpxBUU; SDR-Application-AFT=CfDJ8MzjMVmpnLpKi5exDubmXfStXUVh1gFAfTk287t86Xy7bocYw6WhG7jiTnmMsSrpJiDg07UjE3fWjt1IVEO7qBUBpDqKW3rHjfJry65-3RDGlw1RmeD4Dz-gAlJB8w6ymX5-O7HuHQO0KfNpQoFWtDE; CUID=c28c3aee-8b3f-4225-9bc4-55002813c7e5_947d7b34-d6be-4083-8388-57276f3fbfb0; CSID=g3qL9RL3%2FXXInBEf%2FBNbXzpO2HdORePUKccHrAaoVA2JJug%2Bwy9U%2BGr%2F%2FlF5SJoigJP2cniHq%2FMha1eAJqNktU8KBvCXEqKA0%2Fst3lKBgvmW%2FY91KSP1G3Fag78mJ2KB10H1TKPENCTgCYb5f%2Fe9xpTKNrHsMApWYJuRRPgj%2BrD2OOCKgtXzF1%2Frg36nywL0VuYz5f%2BLdZID5I2Wy6jDyMz%2BpTqiKi0jyQBB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6EWhKNHCg8EdTqzvBNwYMSme1TrYBorlE19RXQJttrn4w08ltZiys0u3o6%2BJ%2FhsMrqMnQaa%2BKUfNfaC2k46NzZQKL4Kbpv6pBLEtDdc9iJKKU%2BHFUXdRifIPiItlHwZK97lqDAyqPhY83evnF7eL5HyvY7B7RLk6eum5OK2HQaHsaK%2FNU2VO95KOMQFG2yhIpAfmDrXeKS%2F
  133. 2022/10/22 16:45:33 [debug] 25#25: *3 http header done
  134. 2022/10/22 16:45:33 [debug] 25#25: *3 generic phase: 0
  135. 2022/10/22 16:45:33 [debug] 25#25: *3 rewrite phase: 1
  136. 2022/10/22 16:45:33 [debug] 25#25: *3 test location: "/"
  137. 2022/10/22 16:45:33 [debug] 25#25: *3 test location: "Gateway/"
  138. 2022/10/22 16:45:33 [debug] 25#25: *3 test location: "Manage/"
  139. 2022/10/22 16:45:33 [debug] 25#25: *3 using configuration "/Manage/"
  140. 2022/10/22 16:45:33 [debug] 25#25: *3 http cl:2304 max:1048576
  141. 2022/10/22 16:45:33 [debug] 25#25: *3 rewrite phase: 3
  142. 2022/10/22 16:45:33 [debug] 25#25: *3 post rewrite phase: 4
  143. 2022/10/22 16:45:33 [debug] 25#25: *3 generic phase: 5
  144. 2022/10/22 16:45:33 [debug] 25#25: *3 generic phase: 6
  145. 2022/10/22 16:45:33 [debug] 25#25: *3 generic phase: 7
  146. 2022/10/22 16:45:33 [debug] 25#25: *3 access phase: 8
  147. 2022/10/22 16:45:33 [debug] 25#25: *3 access phase: 9
  148. 2022/10/22 16:45:33 [debug] 25#25: *3 access phase: 10
  149. 2022/10/22 16:45:33 [debug] 25#25: *3 post access phase: 11
  150. 2022/10/22 16:45:33 [debug] 25#25: *3 generic phase: 12
  151. 2022/10/22 16:45:33 [debug] 25#25: *3 generic phase: 13
  152. 2022/10/22 16:45:33 [debug] 25#25: *3 http client request body preread 2304
  153. 2022/10/22 16:45:33 [debug] 25#25: *3 http request body content length filter
  154. 2022/10/22 16:45:33 [debug] 25#25: *3 http body new buf t:1 f:0 000055E39DC1EA66, pos 000055E39DC1EA66, size: 2304 file: 0, size: 0
  155. 2022/10/22 16:45:33 [debug] 25#25: *3 http init upstream, client timer: 0
  156. 2022/10/22 16:45:33 [debug] 25#25: *3 posix_memalign: 000055E39DBBA420:4096 @16
  157. 2022/10/22 16:45:33 [debug] 25#25: *3 http script copy: ""
  158. 2022/10/22 16:45:33 [debug] 25#25: *3 http script copy: "Host"
  159. 2022/10/22 16:45:33 [debug] 25#25: *3 http script var: "manage_us"
  160. 2022/10/22 16:45:33 [debug] 25#25: *3 http script copy: "Connection"
  161. 2022/10/22 16:45:33 [debug] 25#25: *3 http script copy: "close"
  162. 2022/10/22 16:45:33 [debug] 25#25: *3 http script copy: "Content-Length"
  163. 2022/10/22 16:45:33 [debug] 25#25: *3 http script var: "2304"
  164. 2022/10/22 16:45:33 [debug] 25#25: *3 http script copy: ""
  165. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "Cache-Control: max-age=0"
  166. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "sec-ch-ua: "Chromium";v="106", "Google Chrome";v="106", "Not;A=Brand";v="99""
  167. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "sec-ch-ua-mobile: ?0"
  168. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "sec-ch-ua-platform: "Windows""
  169. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "Upgrade-Insecure-Requests: 1"
  170. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "Origin: http://localhost:9190"
  171. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "Content-Type: application/x-www-form-urlencoded"
  172. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36"
  173. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"
  174. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "Sec-Fetch-Site: same-origin"
  175. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "Sec-Fetch-Mode: navigate"
  176. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "Sec-Fetch-User: ?1"
  177. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "Sec-Fetch-Dest: document"
  178. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "Referer: http://localhost:9190/Manage/Message/Announcement/Edit/a4f91c12-ebd3-4c98-9544-41d3757770bf"
  179. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "Accept-Encoding: gzip, deflate, br"
  180. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "Accept-Language: en-US,en;q=0.9"
  181. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "Cookie: SDR-Application-AFT=CfDJ8FbhNDhYUKNOn7v_odQ8fUMEWWc8ux9dasp9_SfryYplsUPdrV7Z2zTvjYcuzfecjPsjKDAVhDfYiEUrFxBrAOakXhoJDIr8mFevfahkdJPzzCntkqrgt8KY4aIRD6olFZAlHF83TPH3fbL4EHpxBUU; SDR-Application-AFT=CfDJ8MzjMVmpnLpKi5exDubmXfStXUVh1gFAfTk287t86Xy7bocYw6WhG7jiTnmMsSrpJiDg07UjE3fWjt1IVEO7qBUBpDqKW3rHjfJry65-3RDGlw1RmeD4Dz-gAlJB8w6ymX5-O7HuHQO0KfNpQoFWtDE; CUID=c28c3aee-8b3f-4225-9bc4-55002813c7e5_947d7b34-d6be-4083-8388-57276f3fbfb0; CSID=g3qL9RL3%2FXXInBEf%2FBNbXzpO2HdORePUKccHrAaoVA2JJug%2Bwy9U%2BGr%2F%2FlF5SJoigJP2cniHq%2FMha1eAJqNktU8KBvCXEqKA0%2Fst3lKBgvmW%2F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IvIZCmebzvP2JTsKx6oDNfcL7TigYjY8PMj%2BBXnEAvRtsQ0KAwiGUq236NOWkTj5rurGdiwOvotKMfW4RJZyOYXwin%2FkZvBKTGoh5ZY%2Bw5GKkwH0h9An6cq2zJ6EWhKNHCg8EdTqzvBNwYMSme1TrYBorlE19RXQJttrn4w08ltZiys0u3o6%2BJ%2FhsMrqMnQaa%2BKUfNfaC2k46NzZQKL4Kbpv6pBLEtDdc9iJKKU%2BHFUXdRifIPiItlHwZK97lqDAyqPhY83evnF7eL5HyvY7B7RLk6eum5OK2HQaHsaK%2FNU2VO95KOMQFG2yhIpAfmDrX
  182. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header:
  183. "POST /Manage/Message/Announcement/Update HTTP/1.0
  184. Host: manage_us
  185. Connection: close
  186. Content-Length: 2304
  187. Cache-Control: max-age=0
  188. sec-ch-ua: "Chromium";v="106", "Google Chrome";v="106", "Not;A=Brand";v="99"
  189. sec-ch-ua-mobile: ?0
  190. sec-ch-ua-platform: "Windows"
  191. Upgrade-Insecure-Requests: 1
  192. Origin: http://localhost:9190
  193. Content-Type: application/x-www-form-urlencoded
  194. User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
  195. Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9
  196. Sec-Fetch-Site: same-origin
  197. Sec-Fetch-Mode: navigate
  198. Sec-Fetch-User: ?1
  199. Sec-Fetch-Dest: document
  200. Referer: http://localhost:9190/Manage/Message/Announcement/Edit/a4f91c12-ebd3-4c98-9544-41d3757770bf
  201. Accept-Encoding: gzip, deflate, br
  202. Accept-Language: en-US,en;q=0.9
  203. Cookie: SDR-Application-AFT=CfDJ8FbhNDhYUKNOn7v_odQ8fUMEWWc8ux9dasp9_SfryYplsUPdrV7Z2zTvjYcuzfecjPsjKDAVhDfYiEUrFxBrAOakXhoJDIr8mFevfahkdJPzzCntkqrgt8KY4aIRD6olFZAlHF83TPH3fbL4EHpxBUU; SDR-Application-AFT=CfDJ8MzjMVmpnLpKi5exDubmXfStXUVh1gFAfTk287t86Xy7bocYw6WhG7jiTnmMsSrpJiDg07UjE3fWjt1IVEO7qBUBpDqKW3rHjfJry65-3RDGlw1RmeD4Dz-gAlJB8w6ymX5-O7HuHQO0KfNpQoFWtDE; CUID=c28c3aee-8b3f-4225-9bc4-55002813c7e5_947d7b34-d6be-4083-8388-57276f3fbfb0; CSID=g3qL9RL3%2FXXInBEf%2FBNbXzpO2HdORePUKccHrAaoVA2JJug%2Bwy9U%2BGr%2F%2FlF5SJoigJP2cniHq%2FMha1eAJqNktU8KBvCXEqKA0%2Fst3lKBgvmW%2FY91KSP1G3Fag78mJ2KB10H1TKPENCTgCYb5f%2Fe9xpTKNrHsMApWYJuRRPgj%2BrD2OOCKgtXzF1%2Frg36nywL0VuYz5f%2BLdZID5I2Wy6jDyMz%2BpTqiKi0jyQBBr6vE6Dfau704cNfh1YL89fabPsi3NY2bFjcf13GhzOcWJQ6CWrEqQUPWl%2B9or2D%2Bly0JL%2F8z3VDCd%2FHasLpCUhD7ZcCmxv15R8rnjP8TgqgU1Rh4HyxiK3wVgIINeP%2FtQscUKpLfxPwjrSxNQzZox5LzxYFCBhtjDNybTcqqySuosCtUk%2BWYeP5KymiBq4s%2Bs9cZteG1R6faVaGDfKUSEye2GxLgtLScXlwVf%2BaWkjDtrgNzGteQNKoevyYHZePVMqBBIww8alxm2mE9wPZjj2pyaFsZzsCwt1oWnUzSXFFkjys9KUiRpB%2FWghYUUENKSRxC%2BmHZ7VfCMFRaEmmIo3oGNx%2
  204. 2022/10/22 16:45:33 [debug] 25#25: *3 http cleanup add: 000055E39DBC47A8
  205. 2022/10/22 16:45:33 [debug] 25#25: *3 get rr peer, try: 1
  206. 2022/10/22 16:45:33 [debug] 25#25: *3 stream socket 21
  207. 2022/10/22 16:45:33 [debug] 25#25: *3 epoll add connection: fd:21 ev:80002005
  208. 2022/10/22 16:45:33 [debug] 25#25: *3 connect to 172.18.0.5:80, fd:21 #7
  209. 2022/10/22 16:45:33 [debug] 25#25: *3 http upstream connect: -2
  210. 2022/10/22 16:45:33 [debug] 25#25: *3 posix_memalign: 000055E39DBB4010:128 @16
  211. 2022/10/22 16:45:33 [debug] 25#25: *3 event timer add: 21: 60000:8982386
  212. 2022/10/22 16:45:33 [debug] 25#25: *3 http finalize request: -4, "/Manage/Message/Announcement/Update?" a:1, c:2
  213. 2022/10/22 16:45:33 [debug] 25#25: *3 http request count:2 blk:0
  214. 2022/10/22 16:45:33 [debug] 25#25: *3 http run request: "/Manage/Message/Announcement/Update?"
  215. 2022/10/22 16:45:33 [debug] 25#25: *3 http upstream check client, write event:1, "/Manage/Message/Announcement/Update"
  216. 2022/10/22 16:45:33 [debug] 25#25: *3 http upstream request: "/Manage/Message/Announcement/Update?"
  217. 2022/10/22 16:45:33 [debug] 25#25: *3 http upstream send request handler
  218. 2022/10/22 16:45:33 [debug] 25#25: *3 http upstream send request
  219. 2022/10/22 16:45:33 [debug] 25#25: *3 http upstream send request body
  220. 2022/10/22 16:45:33 [debug] 25#25: *3 chain writer buf fl:0 s:3868
  221. 2022/10/22 16:45:33 [debug] 25#25: *3 chain writer buf fl:1 s:2304
  222. 2022/10/22 16:45:33 [debug] 25#25: *3 chain writer in: 000055E39DBC4808
  223. 2022/10/22 16:45:33 [debug] 25#25: *3 writev: 6172 of 6172
  224. 2022/10/22 16:45:33 [debug] 25#25: *3 chain writer out: 0000000000000000
  225. 2022/10/22 16:45:33 [debug] 25#25: *3 event timer del: 21: 8982386
  226. 2022/10/22 16:45:33 [debug] 25#25: *3 event timer add: 21: 60000:8982386
  227. 2022/10/22 16:45:33 [debug] 25#25: *3 http upstream request: "/Manage/Message/Announcement/Update?"
  228. 2022/10/22 16:45:33 [debug] 25#25: *3 http upstream process header
  229. 2022/10/22 16:45:33 [debug] 25#25: *3 malloc: 000055E39DC2DEF0:16384
  230. 2022/10/22 16:45:33 [debug] 25#25: *3 recv: eof:0, avail:-1
  231. 2022/10/22 16:45:33 [debug] 25#25: *3 recv: fd:21 170 of 16384
  232. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy status 400 "400 Bad Request"
  233. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "Connection: close"
  234. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "Date: Sat, 22 Oct 2022 16:45:32 GMT"
  235. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "Content-Length: 0"
  236. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "Cache-Control: no-store, no-cache"
  237. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header: "Access-Control-Allow-Origin: *"
  238. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy header done
  239. 2022/10/22 16:45:33 [debug] 25#25: *3 posix_memalign: 000055E39DBBB430:4096 @16
  240. 2022/10/22 16:45:33 [debug] 25#25: *3 HTTP/1.1 400 Bad Request
  241. Server: nginx
  242. Date: Sat, 22 Oct 2022 16:45:33 GMT
  243. Content-Length: 0
  244. Connection: keep-alive
  245. Cache-Control: no-store, no-cache
  246. Access-Control-Allow-Origin: *
  247. 2022/10/22 16:45:33 [debug] 25#25: *3 write new buf t:1 f:0 000055E39DBBB450, pos 000055E39DBBB450, size: 190 file: 0, size: 0
  248. 2022/10/22 16:45:33 [debug] 25#25: *3 http write filter: l:0 f:0 s:190
  249. 2022/10/22 16:45:33 [debug] 25#25: *3 http cacheable: 0
  250. 2022/10/22 16:45:33 [debug] 25#25: *3 http proxy filter init s:400 h:0 c:0 l:0
  251. 2022/10/22 16:45:33 [debug] 25#25: *3 http upstream process upstream
  252. 2022/10/22 16:45:33 [debug] 25#25: *3 pipe read upstream: 0
  253. 2022/10/22 16:45:33 [debug] 25#25: *3 pipe preread: 0
  254. 2022/10/22 16:45:33 [debug] 25#25: *3 pipe buf free s:0 t:1 f:0 000055E39DC2DEF0, pos 000055E39DC2DF9A, size: 0 file: 0, size: 0
  255. 2022/10/22 16:45:33 [debug] 25#25: *3 pipe length: 0
  256. 2022/10/22 16:45:33 [debug] 25#25: *3 pipe write downstream: 1
  257. 2022/10/22 16:45:33 [debug] 25#25: *3 pipe write downstream done
  258. 2022/10/22 16:45:33 [debug] 25#25: *3 event timer: 21, old: 8982386, new: 8982388
  259. 2022/10/22 16:45:33 [debug] 25#25: *3 http upstream exit: 0000000000000000
  260. 2022/10/22 16:45:33 [debug] 25#25: *3 finalize http upstream request: 0
  261. 2022/10/22 16:45:33 [debug] 25#25: *3 finalize http proxy request
  262. 2022/10/22 16:45:33 [debug] 25#25: *3 free rr peer 1 0
  263. 2022/10/22 16:45:33 [debug] 25#25: *3 close http upstream connection: 21
  264. 2022/10/22 16:45:33 [debug] 25#25: *3 free: 000055E39DBB4010, unused: 48
  265. 2022/10/22 16:45:33 [debug] 25#25: *3 event timer del: 21: 8982386
  266. 2022/10/22 16:45:33 [debug] 25#25: *3 reusable connection: 0
  267. 2022/10/22 16:45:33 [debug] 25#25: *3 http upstream temp fd: -1
  268. 2022/10/22 16:45:33 [debug] 25#25: *3 http output filter "/Manage/Message/Announcement/Update?"
  269. 2022/10/22 16:45:33 [debug] 25#25: *3 http copy filter: "/Manage/Message/Announcement/Update?"
  270. 2022/10/22 16:45:33 [debug] 25#25: *3 http postpone filter "/Manage/Message/Announcement/Update?" 00007FFD0E8F95E0
  271. 2022/10/22 16:45:33 [debug] 25#25: *3 write old buf t:1 f:0 000055E39DBBB450, pos 000055E39DBBB450, size: 190 file: 0, size: 0
  272. 2022/10/22 16:45:33 [debug] 25#25: *3 write new buf t:0 f:0 0000000000000000, pos 0000000000000000, size: 0 file: 0, size: 0
  273. 2022/10/22 16:45:33 [debug] 25#25: *3 http write filter: l:1 f:0 s:190
  274. 2022/10/22 16:45:33 [debug] 25#25: *3 http write filter limit 2097152
  275. 2022/10/22 16:45:33 [debug] 25#25: *3 writev: 190 of 190
  276. 2022/10/22 16:45:33 [debug] 25#25: *3 http write filter 0000000000000000
  277. 2022/10/22 16:45:33 [debug] 25#25: *3 http copy filter: 0 "/Manage/Message/Announcement/Update?"
  278. 2022/10/22 16:45:33 [debug] 25#25: *3 http finalize request: 0, "/Manage/Message/Announcement/Update?" a:1, c:1
  279. 2022/10/22 16:45:33 [debug] 25#25: *3 set http keepalive handler
  280. 2022/10/22 16:45:33 [debug] 25#25: *3 http close request
  281. 2022/10/22 16:45:33 [debug] 25#25: *3 http log handler
  282. 2022/10/22 16:45:33 [debug] 25#25: *3 free: 000055E39DC2DEF0
  283. 2022/10/22 16:45:33 [debug] 25#25: *3 free: 000055E39DBB0DE0, unused: 12
  284. 2022/10/22 16:45:33 [debug] 25#25: *3 free: 000055E39DBC3C50, unused: 112
  285. 2022/10/22 16:45:33 [debug] 25#25: *3 free: 000055E39DBBA420, unused: 64
  286. 2022/10/22 16:45:33 [debug] 25#25: *3 free: 000055E39DBBB430, unused: 3222
  287. 2022/10/22 16:45:33 [debug] 25#25: *3 free: 000055E39DB9A1B0
  288. 2022/10/22 16:45:33 [debug] 25#25: *3 hc free: 0000000000000000
  289. 2022/10/22 16:45:33 [debug] 25#25: *3 hc busy: 000055E39DBB4368 1
  290. 2022/10/22 16:45:33 [debug] 25#25: *3 free: 000055E39DC1DEE0
  291. 2022/10/22 16:45:33 [debug] 25#25: *3 reusable connection: 1
  292. 2022/10/22 16:45:33 [debug] 25#25: *3 event timer add: 20: 65000:8987388

我已重命名我的.NET Core防伪令牌,使其不包含点或下划线。
然而,我仍然在这个问题上卡住了。
这是我的nginx conf:

  1. upstream gateway_us {
  2. server sdr_gateway.web;
  3. }
  4. upstream manage_us {
  5. server sdr_manage.web;
  6. }
  7. server {
  8. listen 80;
  9. server_name localhost;
  10. server_tokens off;
  11. add_header X-Frame-Options "SAMEORIGIN";
  12. add_header X-XSS-Protection "1; mode=block";
  13. # Allow larger than normal headers
  14. large_client_header_buffers 4 64k;
  15. proxy_buffers 8 16k; # Buffer pool = 8 buffers of 16k
  16. proxy_buffer_size 16k; # 16k of buffers from pool used for headers
  17. error_log /var/log/nginx/sdr-fe-nginx-error.log debug;
  18. access_log /var/log/nginx/sdr-fe-nginx-access.log;
  19. ignore_invalid_headers off;
  20. underscores_in_headers on;
  21. location /{
  22. proxy_pass http://gateway_us/;
  23. proxy_set_header Authorization $http_authorization;
  24. proxy_pass_header Authorization;
  25. }
  26. location /Gateway/{
  27. proxy_pass http://gateway_us/;
  28. proxy_set_header Authorization $http_authorization;
  29. proxy_pass_header Authorization;
  30. }
  31. location /Manage/{
  32. proxy_pass http://manage_us/Manage/;
  33. proxy_set_header Authorization $http_authorization;
  34. proxy_pass_header Authorization;
  35. }
  36. }

编辑:
我注意到这个问题是因为我的饼干被削减。并不是所有的都被发送。我甚至添加了额外的缓冲区,但同样的问题发生。

kr98yfug

kr98yfug1#

添加此配置,以启用keepalive连接。

  1. proxy_http_version 1.1;
  2. proxy_set_header Connection "";

它解决了我的问题

相关问题