-
Notifications
You must be signed in to change notification settings - Fork 39
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
Not able to fetch underlying link data #35
Comments
I think you placed your closing parenthesis to arguments to late. You have
SpringDataRestAdapter.process($http.get('/totalcharges/
search/findByHoaId_hoaId?hoaId=1289','homeId',true))
Try
SpringDataRestAdapter.process($http.get('/totalcharges/
search/findByHoaId_hoaId?hoaId=1289'),'homeId',true)
The get request needs to turn the penis to the first argument, followed by
the child selector/selectors and the recursive flag.
…On Apr 16, 2017 9:30 PM, "kkolli1127" ***@***.***> wrote:
Hi Guy,
I'm writing to you as a last resort to help solve my current issue. I have
used your code earlier to fetch the underlying links data and it worked
fine. Currently when I'm trying to use it, it is not working.
Not sure why.
Below is my code: I have included all the required dependencies and
compared the code with your example. Everything seems fine.
JSON:
{ "amount": 0, "year": 2017, "month": 3, "assessmentDate":
"2017-03-07T18:30:00.000+0000", "transactionBalance": null, "_links": {
"self": { "href": "http://localhost:8080/totalcharges/1046" },
"currentCharges": { "href": "http://localhost:8080/totalcharges/1046" },
"homeId": { "href": "http://localhost:8080/totalcharges/1046/homeId" },
"communityInfo": { "href": "http://localhost:8080/totalcharges/1046/
communityInfo" }, "hoaId": { "href": "http://localhost:8080/
totalcharges/1046/hoaId" }, "assessmentRuleType": { "href": "
http://localhost:8080/totalcharges/1046/assessmentRuleType" } } }
JS Code:
SpringDataRestAdapter.process($http.get('/totalcharges/
search/findByHoaId_hoaId?hoaId=1289','homeId',true)).then(function
(processedResponse) { console.log("Inside adapter all");
$scope.totalCharges = processedResponse._embeddedItems;
console.log('attendance users '+ JSON.stringify($scope.totalCharges)); });
Can you help me with some troubleshooting steps?
Thanks,
Kiran
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#35>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AGiCi3HPPJgVeDN4P6J2EIlaGTRiGgx4ks5rwurUgaJpZM4M-3Ia>
.
|
Sorry about the inappropriate word...I posted from my phone and auto
correct replaced it. 😐
…On Apr 17, 2017 8:22 AM, "Matthew Valli" ***@***.***> wrote:
I think you placed your closing parenthesis to arguments to late. You have
SpringDataRestAdapter.process($http.get('/totalcharges/searc
h/findByHoaId_hoaId?hoaId=1289','homeId',true))
Try
SpringDataRestAdapter.process($http.get('/totalcharges/searc
h/findByHoaId_hoaId?hoaId=1289'),'homeId',true)
The get request needs to turn the penis to the first argument, followed by
the child selector/selectors and the recursive flag.
On Apr 16, 2017 9:30 PM, "kkolli1127" ***@***.***> wrote:
> Hi Guy,
>
> I'm writing to you as a last resort to help solve my current issue. I
> have used your code earlier to fetch the underlying links data and it
> worked fine. Currently when I'm trying to use it, it is not working.
> Not sure why.
>
> Below is my code: I have included all the required dependencies and
> compared the code with your example. Everything seems fine.
>
> JSON:
>
> { "amount": 0, "year": 2017, "month": 3, "assessmentDate":
> "2017-03-07T18:30:00.000+0000", "transactionBalance": null, "_links": {
> "self": { "href": "http://localhost:8080/totalcharges/1046" },
> "currentCharges": { "href": "http://localhost:8080/totalcharges/1046" },
> "homeId": { "href": "http://localhost:8080/totalcharges/1046/homeId" },
> "communityInfo": { "href": "http://localhost:8080/totalch
> arges/1046/communityInfo" }, "hoaId": { "href": "
> http://localhost:8080/totalcharges/1046/hoaId" }, "assessmentRuleType":
> { "href": "http://localhost:8080/totalcharges/1046/assessmentRuleType" }
> } }
>
> JS Code:
>
> SpringDataRestAdapter.process($http.get('/totalcharges/searc
> h/findByHoaId_hoaId?hoaId=1289','homeId',true)).then(function
> (processedResponse) { console.log("Inside adapter all");
> $scope.totalCharges = processedResponse._embeddedItems;
> console.log('attendance users '+ JSON.stringify($scope.totalCharges));
> });
>
> Can you help me with some troubleshooting steps?
>
> Thanks,
> Kiran
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <#35>, or mute
> the thread
> <https://github.com/notifications/unsubscribe-auth/AGiCi3HPPJgVeDN4P6J2EIlaGTRiGgx4ks5rwurUgaJpZM4M-3Ia>
> .
>
|
Hey Matt, Thanks for pointing it out. I corrected it now. I see that it is trying to fetch the data from the underlying link (in the Network tab), but it is failing with the below error.
|
You may have already solved the problem, but with my experience that error
occurs when the API server has either not configured a GET Request for the
provided route or the API had some form of security feature disabling the
request.
For example, the team I work with uses Spring Boot, where both scenarios
have appeared.
…On Apr 17, 2017 9:25 PM, "kkolli1127" ***@***.***> wrote:
Hey Matt,
Thanks for pointing it out. I corrected it now. I see that it is trying to
fetch the data from the underlying link (in the Network tab), but it is
failing with the below error.
Possibly unhandled rejection: {"data":null,"status":-1,"
config":{"method":"GET","transformRequest":[null],"
transformResponse":[null],"jsonpCallbackParam":"callback","url":"
http://localhost:8080/totalcharges/749/communityInfo
","headers":{"Accept":"application/json, text/plain,
*/*"}},"statusText":""}
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#35 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AGiCi6yPrlw-0oU56itMBhuvNARFEPYDks5rxDsugaJpZM4M-3Ia>
.
|
I'm using the Spring Boot too. Thanks for all your help. Will investigate the problem. |
Hi @kkolli1127 sorry for my late response. Looks like @mattvalli said: an issue with the back end server configuration of the @mattvalli Thanks a lot for the help! Really appreciated! Thanks and regards Guy |
Hi Guy,
I'm writing to you as a last resort to help solve my current issue. I have used your code earlier to fetch the underlying links data and it worked fine. Currently when I'm trying to use it, it is not working.
Not sure why.
Below is my code: I have included all the required dependencies and compared the code with your example. Everything seems fine.
JSON:
{ "amount": 0, "year": 2017, "month": 3, "assessmentDate": "2017-03-07T18:30:00.000+0000", "transactionBalance": null, "_links": { "self": { "href": "http://localhost:8080/totalcharges/1046" }, "currentCharges": { "href": "http://localhost:8080/totalcharges/1046" }, "homeId": { "href": "http://localhost:8080/totalcharges/1046/homeId" }, "communityInfo": { "href": "http://localhost:8080/totalcharges/1046/communityInfo" }, "hoaId": { "href": "http://localhost:8080/totalcharges/1046/hoaId" }, "assessmentRuleType": { "href": "http://localhost:8080/totalcharges/1046/assessmentRuleType" } } }
JS Code:
SpringDataRestAdapter.process($http.get('/totalcharges/search/findByHoaId_hoaId?hoaId=1289','homeId',true)).then(function (processedResponse) { console.log("Inside adapter all"); $scope.totalCharges = processedResponse._embeddedItems; console.log('attendance users '+ JSON.stringify($scope.totalCharges)); });
Can you help me with some troubleshooting steps?
Thanks,
Kiran
The text was updated successfully, but these errors were encountered: