Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
LlamaIndexTS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
MachineLearning
run-llama
LlamaIndexTS
Commits
d24d3d1e
Unverified
Commit
d24d3d1e
authored
6 months ago
by
Alex Yang
Committed by
GitHub
6 months ago
Browse files
Options
Downloads
Patches
Plain Diff
fix: print warning when llama parse reader has error (#1230)
parent
5c4badbc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.changeset/selfish-cobras-help.md
+5
-0
5 additions, 0 deletions
.changeset/selfish-cobras-help.md
packages/cloud/src/reader.ts
+2
-1
2 additions, 1 deletion
packages/cloud/src/reader.ts
with
7 additions
and
1 deletion
.changeset/selfish-cobras-help.md
0 → 100644
+
5
−
0
View file @
d24d3d1e
---
"
@llamaindex/cloud"
:
patch
---
fix: print warning when llama parse reader has error
This diff is collapsed.
Click to expand it.
packages/cloud/src/reader.ts
+
2
−
1
View file @
d24d3d1e
...
...
@@ -403,6 +403,7 @@ export class LlamaParseReader extends FileReader {
})
.
catch
((
error
)
=>
{
if
(
this
.
ignoreErrors
)
{
console
.
warn
(
`Error while parsing the file:
${
error
.
message
}
`
);
return
[];
}
else
{
throw
error
;
...
...
@@ -437,8 +438,8 @@ export class LlamaParseReader extends FileReader {
resultJson
.
file_path
=
isFilePath
?
filePathOrContent
:
undefined
;
return
[
resultJson
];
}
catch
(
e
)
{
console
.
error
(
`Error while parsing the file under job id
${
jobId
}
`
,
e
);
if
(
this
.
ignoreErrors
)
{
console
.
error
(
`Error while parsing the file under job id
${
jobId
}
`
,
e
);
return
[];
}
else
{
throw
e
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment