Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for ggorlenâ€
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #293105 |
Post edited: clarify |
— | 7 days ago |
Edit | Post #293105 |
Post edited: tweak |
— | 7 days ago |
Edit | Post #293105 |
Post edited: clarify |
— | 7 days ago |
Edit | Post #293105 | Initial revision | — | 7 days ago |
Answer | — |
A: Tackling net::ERR_NAME_NOT_RESOLVED and timeout error on browser object creation when using Puppeteer To fix `TypeError: Cannot read properties of undefined (reading 'close')`, remove the `const` in the following code, which ensures your `let browser` outside the block will be assigned in the common case when `browser.launch()` doesn't throw: ```diff - const browser = await puppeteer.launch({ + ... (more) |
— | 7 days ago |
Edit | Post #289578 |
History hidden: Detailed history before this event is hidden because of a redaction. |
— | over 1 year ago |
Edit | Post #289578 |
Post edited: Roll back poor edit that uses incorrect markdown bulleting and messes with my original style intent |
— | over 1 year ago |
Comment | Post #289579 |
Thanks! Your explanation makes sense. I'd accept this as the answer, but I'm still hoping to see a version that works with a fairly minimal adjustment using the builtin `walk`, without defining my own function. Is there such a straightforward solution, or would it be enough of a hassle that this appr... (more) |
— | over 1 year ago |
Edit | Post #289578 |
Post edited: clarify |
— | over 1 year ago |
Edit | Post #289578 | Initial revision | — | over 1 year ago |
Question | — |
Replace leaf arrays with joined strings in a nested structure in jq Consider the following arbitrarily-nested JSON as input to a jq filter: ```bash echo '[{"foo": [1, 2]}, {"bar": [{"baz": ["foo", "baz"]}]}]' | jq '.' ``` My goal is to join leaf arrays into strings: ```json [{"foo": "12"}, {"bar": [{"baz": "foobaz"}]}] ``` The following filter produce... (more) |
— | over 1 year ago |
Comment | Post #286125 |
Both of these URLs produce screen captures for me, with the small modification `browser = ` rather than `const browser = ` so that it's in scope of the `finally`. The DEBUG output amount depends on the site's behavior. if the site is loading resources that return 403s, that seems fine as long as it f... (more) |
— | over 2 years ago |