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

Search Berita #5

Closed
dekapd99 opened this issue Jun 8, 2022 · 1 comment
Closed

Search Berita #5

dekapd99 opened this issue Jun 8, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@dekapd99
Copy link
Owner

dekapd99 commented Jun 8, 2022

Program berjalan, semua fitur berjalan selain search berita.
Hasil: Unsupported URL

Penyebab: belum tau -> No Error

Warning: async - await syntax -> Task.init

@dekapd99 dekapd99 added the bug Something isn't working label Jun 8, 2022
@dekapd99 dekapd99 changed the title Search Berita, History Berita Search Berita Jun 8, 2022
@dekapd99
Copy link
Owner Author

dekapd99 commented Jun 9, 2022

Penyebab error pada NewsAPI.swift ketika generate hasil search (generateSearchURL(...)) karena tidak ada colon (:) setelah https:
var url = "https//newsapi.org/v2/everything?" menjadi var url = "https://newsapi.org/v2/everything?"

Warning sudah diperbaiki dengan mengubah syntax priority operation yang depricated async { await... } menjadi Task { await...}

@dekapd99 dekapd99 closed this as completed Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant