Skip to content

Fix scraper script #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed

Fix scraper script #8

wants to merge 2 commits into from

Conversation

Mange
Copy link

@Mange Mange commented Mar 25, 2018

(Fixes #7)

The scraper script crashes with this error:

undefined:1



SyntaxError: Unexpected end of input
    at Object.parse (native)
    at /home/ben/slack-api-schemas/api_scraper/index.js:877:56

This happens because the reply_broadcast docs does not have a sample anymore since the message has been removed.

The reply_broadcast message subtype is no longer served. It has been replaced with thread_broadcast.

Second problem is that the thread_broadcast message has unbalanced curly braces in the sample (it's missing a closing brace for the message object).

Mange added 2 commits March 25, 2018 22:22
- The `reply_broadcast` message has been removed, but a reference
  without any documentation is present on the website. This meant that
  the sample was empty, causing other problems down the line.

- The new `thread_broadcast` message has an unbalanced number of curly
  braces in the sample JSON. Balance them before parsing.
@Mange
Copy link
Author

Mange commented Aug 27, 2018

Friendly ping :)

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.

Trying to use this to update slack-rs-api, seems broken?
1 participant