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

Not able to fetch underlying link data #35

Open
kkolli1127 opened this issue Apr 17, 2017 · 6 comments
Open

Not able to fetch underlying link data #35

kkolli1127 opened this issue Apr 17, 2017 · 6 comments
Assignees
Labels
Milestone

Comments

@kkolli1127
Copy link

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

@mattvalli
Copy link

mattvalli commented Apr 17, 2017 via email

@mattvalli
Copy link

mattvalli commented Apr 17, 2017 via email

@kkolli1127
Copy link
Author

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":""}

@mattvalli
Copy link

mattvalli commented Apr 18, 2017 via email

@kkolli1127
Copy link
Author

I'm using the Spring Boot too. Thanks for all your help. Will investigate the problem.

@guylabs guylabs added this to the 0.4.7 milestone May 4, 2017
@guylabs
Copy link
Owner

guylabs commented May 4, 2017

Hi @kkolli1127

sorry for my late response. Looks like @mattvalli said: an issue with the back end server configuration of the /totalcharges/749/communityInfo endpoint. Did you have more insights or did you solve it?

@mattvalli Thanks a lot for the help! Really appreciated!

Thanks and regards

Guy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants