wordpress-mobile / wordpress-mobile/WordPress-iOS

Blaze Search Campaigns - Invoke DSP user create flow

Open
#21,817 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Task Blaze
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.