Skip to content

Fix HVC Garbage collection API#1230

Closed
me-processware wants to merge 1 commit into
Dashticz:masterfrom
me-processware:master
Closed

Fix HVC Garbage collection API#1230
me-processware wants to merge 1 commit into
Dashticz:masterfrom
me-processware:master

Conversation

@me-processware

Copy link
Copy Markdown

Fix HVC Garbage Collection API

Problem

HVC garbage collection stopped working due to API changes:

  • API moved from apps.hvcgroep.nl to inzamelkalender.hvcgroep.nl
  • Response format changed from single object to array
  • Field name changed from 'bagid' to 'bagId'
  • HTTPS/SSL issues in Docker environments with file_get_contents()

Solution

  • Updated API endpoints
  • Added proper array handling
  • Fixed field name references
  • Implemented cURL fallback for HTTPS compatibility
  • Added debug logging

Testing

Tested with address in Emmeloord, successfully retrieves:

  • gft & etensresten (2025-09-19)
  • restafval (2025-09-26)
  • plastic, blik & drinkpakken (2025-10-10)
  • papier en karton (2025-10-13)

Works with both service=hvc and service=afvalstromen&sub=hvc

@lokonli

lokonli commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

I was rather late in merging your PR. Currently there are merge conflicts. I'll try to fix those.

@MadPatrick

Copy link
Copy Markdown

Do i need to push the PR again to the beta branch?

@lokonli

lokonli commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

I'll merge it into the new beta

@MadPatrick

Copy link
Copy Markdown

sorry. that is was mu PR and did not see the HVC PR ;-)

@lokonli

lokonli commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Merged into beta

@lokonli lokonli closed this Jul 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants