wordpress-mobile / WordPress-Android

WordPress for Android
http://android.wordpress.org
GNU General Public License v2.0
2.93k stars 1.31k forks source link

Blaze Search Campaigns - Invoke DSP user create flow #19407

Open zwarm opened 8 months ago

zwarm commented 8 months ago

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

iOS https://github.com/wordpress-mobile/WordPress-iOS/issues/21817

peril-wordpress-mobile[bot] commented 8 months ago
Fails
:no_entry_sign: Please add a type label to this issue. e.g. '[Type] Enhancement'

Generated by :no_entry_sign: dangerJS