You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 45e7cdc
Browse filesBrowse the repository at this point in the historyBrowse files
fix(crawl): crawl_download urls report and error bodies; keep the real create-error body
- crawl_download(type="urls") returned a JSON decode error: that report is always
CSV, whatever format says. Return the text (matching the TypeScript SDK) and add a
type="urls" -> str overload.
- crawl_download raised nothing for a non-list JSON body such as
{errorCode, error} for an unknown job and handed the dict back as records.
Raise JobError carrying the job name, as TypeScript does.
- crawl create with HTTP 200 + errorCode now raises APIError with the real status,
body and headers instead of a synthesized body; message comes from the error
field via the APIError fallback.
- Document the 30-character job name limit (README, crawl docstring) and add the
create-error fix to the 3.3.0 changelog.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -211,6 +211,8 @@ for event in db.crawl("https://www.example.com", hops=1):
211
211
print(event)
212
212
```
213
213
214
+
Job names are limited to 30 characters. The crawler reports a create failure such as an overlong name as HTTP 200 with an `errorCode` in the body; `crawl()` raises `APIError` for it rather than yielding `JOB_CREATED`.
215
+
214
216
For tools that can't block on a long crawl, start the job without watching, poll it, then download the results:
0 commit comments