postman-app-support icon indicating copy to clipboard operation
postman-app-support copied to clipboard

Something went wron, when trying to access to any script

Open nudasilva opened this issue 8 months ago • 8 comments

Is there an existing issue for this?

  • [x] I have searched the tracker for existing similar issues and I know that duplicates will be closed

Describe the Issue

When trying to access to any script, I almost have this issue.

FYI: If i click to 'Close' button et try to access to the script again, it works.

Here are some logs, as an attachment.

renderer-requester.log

Steps To Reproduce

  1. Access to any script

Screenshots or Videos

Image

Operating System

Windows

Postman Version

11.22.0

Postman Platform

Postman App

User Account Type

Signed In User

Additional Context?

No response

nudasilva avatar Mar 20 '25 14:03 nudasilva

Hey @nudasilva! I am unable to recreate this at our end. Could you help us with the following details to expedite triaging it:

  1. Did this start happening recently, maybe after you updated the Postman App?
  2. Is this happening consistently across all requests?
  3. A screen recording of the crash.

Also, it seems you are using an older version of the app. Can you try updating the App and see if you still encounter this issue?

appurva21 avatar Mar 20 '25 15:03 appurva21

I have updated the Postman App to v11.37.5.

This is not happening accross all requests, but more often.

Image

nudasilva avatar Mar 21 '25 09:03 nudasilva

I have this error in logs: [22428][1742548182574][requester][error]["Availability~RequestEditorView","Request editor view child error",{"name":"TypeError","message":"Cannot read properties of undefined (reading 'size')","stack":"TypeError: Cannot read properties of undefined (reading 'size')\n at https://desktop.postman.com/_ar-assets/requester-desktop-7a66b6dd533f55e3.min.js:1401:173394\n at Array.forEach ()\n at X (https://desktop.postman.com/ar-assets/requester-desktop-7a66b6dd533f55e3.min.js:1401:173376)\n at o (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:58491)\n at ae (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:67330)\n at s (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:105470)\n at sS (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:97313)\n at sk (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:97238)\n at sh (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:94154)\n at https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:45936\n at t.unstable_runWithPriority (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2525:28910)\n at iC (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:45642)\n at ij (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:45882)\n at iI (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:45817)\n at sg (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:94538)\n at e4 (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2440:57420)\n at e6 (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2440:57000)\n at eY (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2440:52927)\n at ef (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2440:44325)\n at ed (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2440:44143)\n at P.n (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2440:44021)\n at https://desktop.postman.com/_ar-assets/requester-desktop-7a66b6dd533f55e3.min.js:1335:92967\n at nrWrapper (https://desktop.postman.com/?desktopVersion=11.37.5&userId=19110118&teamId=2987631&region=us:15:17817)"},{"componentStack":"\n in X\n in div\n in Flex__StyledFlex\n in Flex\n in RequestBodyBinaryEditor__RequestBodyBinaryEditorContainer\n in i\n in v\n in withI18nextTranslation(v)\n in div\n in div\n in div\n in Unknown\n in withI18nextTranslation(Unknown)\n in div\n in i\n in a\n in div\n in r\n in div\n in div\n in s\n in Unknown\n in WithTheme(Component)\n in div\n in Unknown\n in div\n in Unknown\n in div\n in div\n in b\n in div\n in Unknown\n in div\n in v\n in div\n in div\n in b\n in Unknown\n in div\n in div\n in Unknown\n in l\n in Unknown\n in i\n in Unknown\n in Suspense\n in Unknown\n in a\n in div\n in div\n in i\n in Unknown\n in Suspense\n in div\n in Unknown\n in Suspense\n in div\n in u\n in t\n in Unknown\n in clickOutside()\n in i\n in div\n in Unknown\n in div\n in v\n in div\n in div\n in b\n in Observer\n in Unknown\n in div\n in div\n in Unknown\n in DropTarget(Component)\n in Unknown\n in div\n in Unknown\n in div\n in v\n in div\n in div\n in b\n in Unknown\n in Suspense\n in a\n in div\n in a\n in div\n in a\n in l\n in Unknown\n in u\n in t\n in a\n in l\n in h\n in a\n in Unknown\n in DragDropContext(Component)\n in l\n in eD\n in g\n in a"},{"crash":true,"meta":{"domain":"engineering-foundation","category":"availability"}}] [22428][1742548182581][requester][error]["CrashHandler~componentDidCatch: Error logged via props",,{"name":"TypeError","message":"Cannot read properties of undefined (reading 'size')","stack":"TypeError: Cannot read properties of undefined (reading 'size')\n at https://desktop.postman.com/_ar-assets/requester-desktop-7a66b6dd533f55e3.min.js:1401:173394\n at Array.forEach ()\n at X (https://desktop.postman.com/ar-assets/requester-desktop-7a66b6dd533f55e3.min.js:1401:173376)\n at o (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:58491)\n at ae (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:67330)\n at s (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:105470)\n at sS (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:97313)\n at sk (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:97238)\n at sh (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:94154)\n at https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:45936\n at t.unstable_runWithPriority (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2525:28910)\n at iC (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:45642)\n at ij (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:45882)\n at iI (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:45817)\n at sg (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2487:94538)\n at e4 (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2440:57420)\n at e6 (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2440:57000)\n at eY (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2440:52927)\n at ef (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2440:44325)\n at ed (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2440:44143)\n at P.n (https://desktop.postman.com/_ar-assets/vendors-0e0f12f9d5282373.min.js:2440:44021)\n at https://desktop.postman.com/_ar-assets/requester-desktop-7a66b6dd533f55e3.min.js:1335:92967\n at nrWrapper (https://desktop.postman.com/?desktopVersion=11.37.5&userId=19110118&teamId=2987631&region=us:15:17817)"},{"componentStack":"\n in Unknown\n in a\n in div\n in div\n in i\n in Unknown\n in Suspense\n in div\n in Unknown\n in Suspense\n in div\n in u\n in t\n in Unknown\n in clickOutside()\n in i\n in div\n in Unknown\n in div\n in v\n in div\n in div\n in b\n in Observer\n in Unknown\n in div\n in div\n in Unknown\n in DropTarget(Component)\n in Unknown\n in div\n in Unknown\n in div\n in v\n in div\n in div\n in b\n in Unknown\n in Suspense\n in a\n in div\n in a\n in div\n in a\n in l\n in Unknown\n in u\n in t\n in a\n in l\n in h\n in a\n in Unknown\n in DragDropContext(Component)\n in l\n in eD\n in g\n in a"},{"crash":true}] [22428][1742548184488][requester][error]["Error in fetching active request context",{"name":"TypeError","message":"Cannot set properties of undefined (setting 'activeRequestContext')","stack":"TypeError: Cannot set properties of undefined (setting 'activeRequestContext')\n at s.setActiveRequestContext (https://desktop.postman.com/_ar-assets/RelatedRequestsContextBarIcon-313e2e278313e7c0.min.js:1:24388)\n at v (https://desktop.postman.com/_ar-assets/RelatedRequestsContextBarIcon-313e2e278313e7c0.min.js:1:6347)\n at https://desktop.postman.com/_ar-assets/RelatedRequestsContextBarIcon-313e2e278313e7c0.min.js:1:25798\n at Generator.next ()\n at l (https://desktop.postman.com/_ar-assets/RelatedRequestsContextBarIcon-313e2e278313e7c0.min.js:1:25464)\n at nrWrapper (https://desktop.postman.com/?desktopVersion=11.37.5&userId=19110118&teamId=2987631&region=us:15:17817)"},{"context":{"api":"RelatedRequests","domain":"search"}}]

nudasilva avatar Mar 21 '25 09:03 nudasilva

I had this issue before update, as well

nudasilva avatar Mar 21 '25 09:03 nudasilva

@nudasilva do the requests you're trying to access happen to have files uploaded for the bodies?

jonathanhaviv avatar Mar 24 '25 17:03 jonathanhaviv

Image

For a few days I have not been able to open scripts or create new ones VSCode Extension

markinkus avatar Mar 24 '25 17:03 markinkus

Yes, this is happening on scripts, with file upload.

nudasilva avatar Mar 25 '25 14:03 nudasilva

@nudasilva are you able to share a similar version of the script? If you're able to export and share the collection as json it would also help but understand if you cannot.

jonathanhaviv avatar Mar 25 '25 18:03 jonathanhaviv

@jonathanhaviv Here is the king of impacted curlby this issue:

curl --location 'https://preprod.id3600.com/api/1.0.0/enrollment/flow/document/proof_of_address_image/'
--header 'x-api-key: 222f9d22ffb51c80668b4d0017e353047c21b23434fdecddb3a0dbfc899ef1f5028c16a9a3deb450cd9439fc716f05feb7de0c2b0960d823f4188f5d0ed08fc3'
--header 'Content-Type: application/pdf'
--header 'Cookie: sessionid=sqt4p6560yw5vu4kqy4p6erze5t2skte'
--data-binary '@Address proof - woman.pdf'

Here is the related json of the script into collection:

									{
										"name": "Upload woman address proof with alternate name",
										"event": [
											{
												"listen": "test",
												"script": {
													"exec": [
														"pm.test('Test',function (){\r",
														"    pm.response.to.have.status(201);\r",
														"    var jsonData = JSON.parse(responseBody);\r",
														"\r",
														"    if (jsonData != \"OK\") {\r",
														"        pm.expect.fail('Upload address proof not OK'); \r",
														"    }\r",
														"\r",
														"    contentLength = pm.request.headers.get(\"Content-Length\")\r",
														"    pm.environment.set(\"contentLength_address\", contentLength);\r",
														"});"
													],
													"type": "text/javascript"
												}
											}
										],
										"request": {
											"method": "POST",
											"header": [
												{
													"key": "x-api-key",
													"value": "{{api_key}}"
												}
											],
											"body": {
												"mode": "file",
												"file": {
													"src": "Address proof - woman.pdf"
												}
											},
											"url": {
												"raw": "https://{{base_url}}{{publicPath}}enrollment/flow/document/proof_of_address_image/",
												"protocol": "https",
												"host": [
													"{{base_url}}{{publicPath}}enrollment"
												],
												"path": [
													"flow",
													"document",
													"proof_of_address_image",
													""
												]
											}
										},
										"response": []
									}

nudasilva avatar Jun 27 '25 13:06 nudasilva