Commit 41c2f5c
committed
fix(instagram-api): re-prompt via requestInput on invalid env credentials
When env-provided credentials (PLATFORM_LOGIN / PLATFORM_PASSWORD) fail
with invalid_credentials, fall through to the existing promptWithRetry
loop instead of throwing immediately. Matches the no-env path behavior
and supports the bad-password canary mode in context-gateway.
Other error kinds (login_api_error, network, etc.) still throw as
before. Real users who fat-finger their password now re-prompt instead
of seeing a generic failure.
Ported from an ad-hoc snapshot edit in context-gateway PR #185.1 parent fa12b74 commit 41c2f5c
1 file changed
Lines changed: 42 additions & 33 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
774 | | - | |
775 | | - | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | | - | |
801 | | - | |
802 | | - | |
803 | | - | |
| 774 | + | |
| 775 | + | |
| 776 | + | |
| 777 | + | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
804 | 782 | | |
805 | | - | |
| 783 | + | |
806 | 784 | | |
807 | | - | |
| 785 | + | |
| 786 | + | |
| 787 | + | |
808 | 788 | | |
| 789 | + | |
809 | 790 | | |
810 | | - | |
| 791 | + | |
811 | 792 | | |
812 | 793 | | |
813 | 794 | | |
| |||
846 | 827 | | |
847 | 828 | | |
848 | 829 | | |
| 830 | + | |
| 831 | + | |
| 832 | + | |
| 833 | + | |
| 834 | + | |
| 835 | + | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
| 839 | + | |
| 840 | + | |
| 841 | + | |
| 842 | + | |
| 843 | + | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
| 847 | + | |
| 848 | + | |
| 849 | + | |
| 850 | + | |
| 851 | + | |
| 852 | + | |
| 853 | + | |
| 854 | + | |
| 855 | + | |
| 856 | + | |
| 857 | + | |
849 | 858 | | |
850 | 859 | | |
851 | 860 | | |
| |||
0 commit comments