wordpress-mobile / wordpress-mobile/WordPress-iOS
Blaze Search Campaigns - Invoke DSP user create flow
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 3.9k
- Forks
- 1.2k
- Avg merge
- 23h 51m
- Merged PRs (30d)
- 58
Description
When a new user first attempts to access the Blaze campaigns list, the initial call encounters a 400 error accompanied by the following error message: {"errorMessage":"No local user for WPCOM user {id}","errorCode":"no_local_user","cookies":[],"exists":0}.
This occurs because the DSP server requires synchronization of the WPCOM user and its insertion into the database.
To resolve this issue, is to invoke the DSP endpoint /sites/%s/wordads/dsp/api/v1/user/check to initiate the user creation process. Subsequently, retry the operation for the Blaze campaign search endpoint.
See conversation: p1697620395920789-slack-C04LJFS1G5P
Android https://github.com/wordpress-mobile/WordPress-Android/issues/19407
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Locate the Swift code that loads the Blaze campaigns list and trace the failing search request. Check how the DSP endpoint /sites/%s/wordads/dsp/api/v1/user/check can be invoked before retrying the campaign search. Done means a first access synchronizes the WPCOM user and successfully loads the campaigns instead of returning no_local_user.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- api, mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100