Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
165fe077
authored
Oct 25, 2024
by
heheer
Committed by
GitHub
Oct 25, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: http raw response undefined (#2981)
parent
75494f8d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
packages/service/core/workflow/dispatch/tools/http468.ts
+6
-1
projects/app/src/pages/app/detail/components/WorkflowComponents/utils.tsx
+2
-2
No files found.
packages/service/core/workflow/dispatch/tools/http468.ts
View file @
165fe077
...
@@ -232,7 +232,12 @@ export const dispatchHttp468Request = async (props: HttpRequestProps): Promise<H
...
@@ -232,7 +232,12 @@ export const dispatchHttp468Request = async (props: HttpRequestProps): Promise<H
// format output value type
// format output value type
const
results
:
Record
<
string
,
any
>
=
{};
const
results
:
Record
<
string
,
any
>
=
{};
node
.
outputs
.
forEach
((
item
)
=>
{
node
.
outputs
.
filter
(
(
item
)
=>
item
.
key
!==
NodeOutputKeyEnum
.
error
&&
item
.
key
!==
NodeOutputKeyEnum
.
httpRawResponse
)
.
forEach
((
item
)
=>
{
const
key
=
item
.
key
.
startsWith
(
'$'
)
?
item
.
key
:
`$.
${
item
.
key
}
`
;
const
key
=
item
.
key
.
startsWith
(
'$'
)
?
item
.
key
:
`$.
${
item
.
key
}
`
;
results
[
item
.
key
]
=
JSONPath
({
path
:
key
,
json
:
formatResponse
})[
0
];
results
[
item
.
key
]
=
JSONPath
({
path
:
key
,
json
:
formatResponse
})[
0
];
});
});
...
...
projects/app/src/pages/app/detail/components/WorkflowComponents/utils.tsx
View file @
165fe077
import
{
computedNodeInputReference
}
from
'@/web/core/workflow/utils'
;
import
{
computedNodeInputReference
}
from
'@/web/core/workflow/utils'
;
import
{
AppDetailType
}
from
'@fastgpt/global/core/app/type'
;
import
{
AppDetailType
}
from
'@fastgpt/global/core/app/type'
;
import
{
NodeInputKeyEnum
}
from
'@fastgpt/global/core/workflow/constants'
;
import
{
NodeInputKeyEnum
,
NodeOutputKeyEnum
}
from
'@fastgpt/global/core/workflow/constants'
;
import
{
FlowNodeTypeEnum
}
from
'@fastgpt/global/core/workflow/node/constant'
;
import
{
FlowNodeTypeEnum
}
from
'@fastgpt/global/core/workflow/node/constant'
;
import
{
StoreEdgeItemType
}
from
'@fastgpt/global/core/workflow/type/edge'
;
import
{
StoreEdgeItemType
}
from
'@fastgpt/global/core/workflow/type/edge'
;
import
{
FlowNodeItemType
,
StoreNodeItemType
}
from
'@fastgpt/global/core/workflow/type/node.d'
;
import
{
FlowNodeItemType
,
StoreNodeItemType
}
from
'@fastgpt/global/core/workflow/type/node.d'
;
...
@@ -125,7 +125,7 @@ export const getEditorVariables = ({
...
@@ -125,7 +125,7 @@ export const getEditorVariables = ({
:
sourceNodes
:
sourceNodes
.
map
((
node
)
=>
{
.
map
((
node
)
=>
{
return
node
.
outputs
return
node
.
outputs
.
filter
((
output
)
=>
!!
output
.
label
)
.
filter
((
output
)
=>
!!
output
.
label
&&
output
.
id
!==
NodeOutputKeyEnum
.
addOutputParam
)
.
map
((
output
)
=>
{
.
map
((
output
)
=>
{
return
{
return
{
label
:
t
((
output
.
label
as
any
)
||
''
),
label
:
t
((
output
.
label
as
any
)
||
''
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment