akvo / akvo-tech-consultancy

Custom Development to Support Partner's Data Journey
https://www.akvo.org
7 stars 2 forks source link

reloading saved form throws error #213

Closed joycarpediem closed 3 years ago

joycarpediem commented 4 years ago
Screenshot 2020-08-05 at 2 05 55 PM
dedenbangkit commented 4 years ago

@wayangalihpratama you make changes to this function:

https://github.com/akvo/akvo-tech-consultancy/blob/dac2e5f8bfe9d5d2736a318ec1ef34f09137e46e/sites/2scale/app/Libraries/FlowApi.php#L51-L68

This was to read this example endpoint: https://tech-consultancy.akvotest.org/akvo-flow-web-api/form-instance/91966ec8-f7b0-4698-b6f6-e1553024be14

I'm afraid it will break any changes you made, please revert the endpoint config with this line: https://github.com/akvo/akvo-tech-consultancy/blob/dac2e5f8bfe9d5d2736a318ec1ef34f09137e46e/sites/2scale/config/akvo.php#L14

maybe the next time we have to do git blame the file before making changes to it.

dedenbangkit commented 4 years ago

Screen Shot 2020-08-07 at 1 13 19 AM (2)

@joycarpediem this is the result when I hardcode the following lines directly from the server.


https://github.com/akvo/akvo-tech-consultancy/blob/dac2e5f8bfe9d5d2736a318ec1ef34f09137e46e/sites/2scale/app/Libraries/FlowApi.php#L53

my endpoint is expecting the backend to read this URL ya: @wayangalihpratama : $url = 'https://tech-consultancy.akvotest.org/akvo-flow-web-api/form-instance/' . $id;