Skip to content

Commit

Permalink
Merge pull request #734 from golemfactory/bugfix/gsb-api-missing-header
Browse files Browse the repository at this point in the history
Fixed missing header in gsb api
  • Loading branch information
mgordel authored Dec 19, 2023
2 parents 0fd595a + 9f0fa6f commit 2406dcd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/utils/yagna/gsb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ export class RequestorApi extends BaseAPI implements GsbRequestorApi {
components,
},
}),
headers: { authorization: `Bearer ${this.configuration?.apiKey}` },
headers: {
"Content-Type": "application/json",
authorization: `Bearer ${this.configuration?.apiKey}`,
},
}).catch((e) => {
throw new GolemError(`Failed to create service: ${e}`);
});
Expand Down
2 changes: 1 addition & 1 deletion tests/docker/Provider.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ RUN apt-get update -q \
&& rm -Rf ${YA_DIR_INSTALLER}
COPY ./configureProvider.py /configureProvider.py

CMD ["bash", "-c", "python3 /configureProvider.py && golemsp run --payment-network testnet"]
CMD ["bash", "-c", "python3 /configureProvider.py && ya-provider rule set outbound everyone --mode whitelist && ya-provider whitelist add -p ipfs.io && golemsp run --payment-network testnet " ]

0 comments on commit 2406dcd

Please sign in to comment.