Skip to content
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

"0x" throws an error if used on "pvt_key_for_metering" #416

Open
arturgontijo opened this issue Nov 6, 2019 · 1 comment
Open

"0x" throws an error if used on "pvt_key_for_metering" #416

arturgontijo opened this issue Nov 6, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@arturgontijo
Copy link
Contributor

Using the v2.0.2 if I set the snetd.config.json like this:

...
"pvt_key_for_metering": "0x11111111111111111111111111111111111111111111111111111111111111",
...

snetd will not get the value as a private key, instead I had to set it like:

...
"pvt_key_for_metering": "11111111111111111111111111111111111111111111111111111111111111",
...

It would be great if snetd could accept both ways.

@arturgontijo
Copy link
Contributor Author

arturgontijo commented Nov 6, 2019

More details:

The Daemon doesn't crash, but it doesn't respond the requests neither.
The service was "online" on dApp but always responding the Service Execution went wrong. Please try again error.

Daemon's logs:

time="2019-11-06T16:37:16.754035356Z" level=debug msg="New gRPC call received" context="{MD: map[sec-fetch-mode:[cors] user-agent:[Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36] :authority:[services-1.snet.sh:6406] snet-payment-channel-signature-bin:[...] origin:[https://beta.singularitynet.io] content-type:[application/grpc+proto] x-grpc-web:[1] accept-encoding:[gzip, deflate, br] sec-fetch-site:[cross-site] snet-payment-type:[free-call] content-length:[13074] accept-language:[en-US,en;q=0.9] snet-free-call-user-id:[artur@singularitynet.io] referer:[https://services-1.snet.sh:6406/] accept:[*/*] connection:[keep-alive] snet-current-block-number:[8884908]], Info: {/SemanticSegmentation/segment true true}"
time="2019-11-06T16:37:16.7541501Z" level=debug msg="Return payment handler by type" paymentType=free-call
time="2019-11-06T16:37:16.75427962Z" level=debug msg=payload payload="{\"type\":\"request\",\"registry_address_key\":\"0xdce9c76ccb881af94f7fb4fac94e4acc584fa9a5\",\"ethereum_json_rpc_endpoint\":\"https://mainnet.infura.io\",\"request_id\":\"bn1fdf6c50hun1ja7g0g\",\"input_data_size\":\"1581\",\"service_method\":\"/SemanticSegmentation/segment\",\"request_received_time\":\"2019-11-06 16:37:16.753992928\",\"organization_id\":\"snet\",\"service_id\":\"semantic-segmentation\",\"group_id\":\"EoFmN3nvaXpf6ew8jJbIPVghE5NXfYupFF7PkRmVyGQ=\",\"daemon_end_point\":\"\",\"version\":\"v2.0.2\",\"client_type\":\"\",\"user_details\":\"\",\"user_agent\":\"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.120 Safari/537.36\",\"channel_id\":\"\"}"
time="2019-11-06T16:37:16.754350086Z" level=error msg="invalid hex string"

@semyon-dev semyon-dev added the bug Something isn't working label Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants