Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Ondrej Tomčík
    @ondrejtomcik
    @kwlodarczyk trailing slash should be fixed. Please retest.
    Ondrej Tomčík
    @ondrejtomcik
    @kmaloor your devices should be removed from your account. Confirm please.
    Krzysztof Włodarczyk
    @kwlodarczyk
    @ondrejtomcik Now requesting an URI with trailing slash causes a redirect response to the URI without the slash which seems ok. Thanks.
    Krzysztof Włodarczyk
    @kwlodarczyk
    I noticed one more thing - the Go-OCF Cloud always requires the Accept header to be present in the request. Is this header mandated in C2C spec?
    Jozef Kralik
    @jkralik
    Kishen Maloor
    @kmaloor
    @ondrejtomcik I see that my account is cleared now of dead devices. Thanks!
    Kishen Maloor
    @kmaloor
    @jkralik It appears that the refresh token request is failing with the plgdin Cloud. It appears that the Cloud returns a 5.03 response (Service unavailable).
    Krzysztof Włodarczyk
    @kwlodarczyk
    @ondrejtomcik @jkralik Is there a way for a client to find out what events has be already subscribed to? Suppose I want to subscribe to an event but I'm not sure if I already subscribed or not. I just checked that I'm able to subscribe to same event with same eventsUri multiple times and the Go-OCF cloud allows me to do that.
    Krzysztof Włodarczyk
    @kwlodarczyk
    @ondrejtomcik @jkralik please let me know if there's a possibility to remove all current subscriptions. I'm being bombarded with incoming TCP connections from Go-OCF cloud..
    Jozef Kralik
    @jkralik
    @kwlodarczyk yes you can be subscribed more than once. We don't have api to list all subcription -> but every event has subscriptionID and you can use it to remove subscription via API.
    Krzysztof Włodarczyk
    @kwlodarczyk
    @jkralik the problem is that not always you are able to unsubscribe before the app losts track of the subscriptionID. In my case I was not able to run the test cases I'm developing against Go-OCF Cloud right now because instead od receiving one event I get a whole bunch of them which causes verifications to fail.
    Ondrej Tomčík
    @ondrejtomcik
    @kwlodarczyk subscription retrieval API will be released in next spec release cycle. Another way how you can clean it up - reply 4xx to received event. Particular subscription should be then canceled. Do we have this implemented @jkralik ?
    Ondrej Tomčík
    @ondrejtomcik
    @kmaloor regarding refresh token, try again please. It should be fixed now.
    Hugh-Bao
    @Hugh-Bao
    @ondrejtomcik Are there guidelines for subscriptions testing with plugin cloud? Can I use the same "eventURL" for all subscriptions ? According to the OCF spec, postman tools is to be an origin cloud and plugged in cloud is to be a target cloud for testing C2C APIs.
    Ondrej Tomčík
    @ondrejtomcik

    @Hugh-Bao There are no specific guidelines, only specification which is fully implemented. Yes, you can use one "eventURL" for all subscriptions.

    Yes, you can with postman test the C2C in a way that pluggedin.cloud is a target cloud. But you want be able to receive events with postman. For that you need another tool. e.g. https://ptsv2.com/

    Hugh-Bao
    @Hugh-Bao
    @ondrejtomcik Thanks a lot. :)
    Ondrej Tomčík
    @ondrejtomcik
    @Hugh-Bao working now ?
    Hugh-Bao
    @Hugh-Bao
    I am just getting home. I will try it tomorrow. : )
    Hugh-Bao
    @Hugh-Bao
    @ondrejtomcik Use the tool that you gived, it can receive the SubscriptionID from response payload after post subscription to plugged.in cloud. Thank you for your guidance!
    Ondrej Tomčík
    @ondrejtomcik
    @Hugh-Bao I mean the ptsv2, which you can use as events url endpoint and you can see there all events.
    Hugh-Bao
    @Hugh-Bao
    @ondrejtomcik I know it , I am trying to test now.
    Hugh-Bao
    @Hugh-Bao
    @ondrejtomcik the ptsv2 is working on my side. I can see the post message from plugged.in cloud.
    Ondrej Tomčík
    @ondrejtomcik
    :thumbsup:
    Krzysztof Włodarczyk
    @kwlodarczyk
    @kmaloor @ondrejtomcik Hi, I'm experiencing issues with running more than one cloud server device (cloud_server lite app, run from separate copies of Lite repos). One device works fine, i.e. it is visible as online in Go-OCF portal, however the second device cannot log in to the cloud and is visible as offline. I tried that multiple times and I'm always getting the same result. Am I doing something wrong?
    Jozef Kralik
    @jkralik

    @kwlodarczyk subscription retrieval API will be released in next spec release cycle. Another way how you can clean it up - reply 4xx to received event. Particular subscription should be then canceled. Do we have this implemented @jkralik ?

    @kwlodarczyk @ondrejtomcik You need to return http code 410 (StatusGone ) to remove subscription.

    Qiang0428
    @Qiang0428
    @Rashid
    johnzhangjun
    @johnzhangjun
    A simple question of the client parameters (client id and client secret) under OCF C2C API context, are these parameters assigned to the "vendor client APP" (just use this term to mean the registered client is associated with the vendor of the Orgin Cloud) of the Origin Cloud, or the "end user" signing in the origin cloud with the the "vendor client APP" for account linking? I assume it is the former. Am I right? I also assume the Target Cloud should assign the same client parameters for the same "vendor client APP", there could be different end-users linking their accounts, but should associate with the same client parameters.
    johnzhangjun
    @johnzhangjun
    @ondrejtomcik Hi Ondrej, can I have your clarification to the above question of C2C client paramters?
    Ondrej Tomčík
    @ondrejtomcik
    Hello @johnzhangjun . Client parameters are created per vendor. Each vendor accessing e.g. plugged.in C2C API will have their own, unique client credentials, redirect uri, etc. Then the vendor will provide account linking, for which he will use these values and user will be informed on the plugged.in side that hey, this app (client) wants to r/w your devices.
    Hugh-Bao
    @Hugh-Bao
    @ondrejtomcik Hello Ondrej, there is one problem that I can not hande it. Can you give me some advices. When I deploy go-ocf cloud in my local Ubuntu 18.04 enviroment, if I could use curl or postman to constuct C2C APIs for accessing the content from cloud mentioned as above, how can I configure relative ENV by using docker ?
    Hugh-Bao
    @Hugh-Bao
    Now we deloyed the go-ocf cloud successful in local by default ENV, and the emulation device could connect with this cloud, but when we use curl to construct C2C API to access this cloud, it would return "Bad request" response. @ondrejtomcik
    Hugh-Bao
    @Hugh-Bao
    Hello @ondrejtomcik I can get access token from local ocfcloud/bundle:vnext when I issue "curl 'https://localhost:9085/api/authz/token' -k" request ; but I will receive "404 not found" response while I send "curl --request GET \
    --url https://localhost:9085/api/v1/devices \
    --header 'authorization: Bearer <access_token>' \
    --header 'content-type: application/json' \
    --header 'accept: application/json'", what causes this problem. Looking forward to your replying, thank you!
    Ondrej Tomčík
    @ondrejtomcik
    @Hugh-Bao Are you using bundle image ? Or how did you deploy the go-ocf/cloud ?
    Hugh-Bao
    @Hugh-Bao
    I used "sudo docker pull ocfcloud/bundle:vnext" and "sudo docker run -d --network=host --name=cloud -t ocfcloud/bundle:vnext" command to deploy this cloud
    Ondrej Tomčík
    @ondrejtomcik
    @Hugh-Bao bundle image doesn't contain C2C
    Hugh-Bao
    @Hugh-Bao
    So I can not use bundle image for C2C PAI testing ?
    Ondrej Tomčík
    @ondrejtomcik
    @Hugh-Bao no
    Hugh-Bao
    @Hugh-Bao
    If I want to use go-ocf cloud to test C2C API, what should I do?
    Ondrej Tomčík
    @ondrejtomcik
    @Hugh-Bao use try.plgd.cloud . That's the only option right now.
    Hugh-Bao
    @Hugh-Bao
    OK , got it, thank you very much.
    Hugh-Bao
    @Hugh-Bao
    @ondrejtomcik Ondrej, if we use go-ocf to create local cloud directly, what do we need to do, is there any guidance ?
    Ondrej Tomčík
    @ondrejtomcik
    @Hugh-Bao You mean full cloud, not the bundle? deployment scripts and docu is not finalized yet. There is unfortunatelly no guidance how to do it. Our resources are very limited and everything takes time. Until you want to sponsor the go-ocf project and speed up your request. In the upcoming days, there will be an official sponsorsip possiblity enabled for the go-ocf/cloud project, which might speed-up your request.
    Hugh-Bao
    @Hugh-Bao
    Yes, I mean full cloud function. OK, I understand. Thanks a lot.
    Ondrej Tomčík
    @ondrejtomcik
    @here FYI documentation is in progress!
    https://gocf.dev/
    contributions warmly welcome!
    sudoodus
    @sudoodus
    Is anyone could invite me to join the group ocfcloud/mvite-4?
    Ondrej Tomčík
    @ondrejtomcik
    @sudoodus only those who signed the NDA are invited there. Please contact Rami.
    WinnieXu-CEI
    @winnnnniexu
    @ondrejtomcik We have been signed the NDA and registered the test, could you please give us the contact information about Rami so that we can reach him out? Thanks
    mkettrick
    @mkettrick
    You can contact Rami here: ralshafi@vtmgroup.com
    WinnieXu-CEI
    @winnnnniexu
    Thanks for the indormation.
    ged
    @gedw99
    Any examples of using this with tinygo ?