Skip to content

Fix sample integrations - #58

Open
arunimshukla wants to merge 4 commits into
joinmassive:mainfrom
arunimshukla:fix-sample-integrations
Open

Fix sample integrations#58
arunimshukla wants to merge 4 commits into
joinmassive:mainfrom
arunimshukla:fix-sample-integrations

Conversation

@arunimshukla

Copy link
Copy Markdown

The Puppeteer sample has an unterminated string on the username line
('{PROXY_USERNAME},). Saving the block and running node --check returns
a SyntaxError, so the sample fails on copy-paste.

residential/samples/ruby.mdx currently contains the Puppeteer sample
rather than Ruby. The page description explains that Ruby's stdlib doesn't
support HTTPS proxy connections and points to the HTTP port, but the code
connects to 65535. Replaced with a Net::HTTP.Proxy sample on port 65534
matching the description.

Also corrected the Python code fence from javascript to python.

Replace Puppeteer code with Ruby sample.

Signed-off-by: Arunim Shukla <54760103+arunimshukla@users.noreply.github.com>
Fix unterminated string in Puppeteer sample

Signed-off-by: Arunim Shukla <54760103+arunimshukla@users.noreply.github.com>
Signed-off-by: Arunim Shukla <54760103+arunimshukla@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant