Categories
Development

Firebase Cloud Functions Authentication createUser unkown error

I’m building an API under Firebase Cloud Functions and express. I’m trying to develop a function that creates a user and set up his profile at the same time. The problem: the function doesn’t go further than the createUser method. The endpoint returns error 500 and a null response. I realized that it was the […]

Categories
Development

Email validation not working in flutter display message even if email address is correct

email empty validation works but email type validation is not working display “Invalid Email” message if right email address inserted. new TextFormField( decoration: new InputDecoration( labelText: ‘Email’ ), validator: (value){ if (value.isEmpty) { return ‘Email is required’; } if(!value.contains(r’^(([^<>()[\]\\.,;:\s@\”]+(\.[^<>()[\]\\.,;:\s@\”]+)*)|(\”.+\”))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$’)){ return ‘Invalid Email’; } return null; }, )

Categories
Development

File path needed before Image upload using multer

I have to register a user with a profile image. I’m using a custom validation. For Schema validation I need a file path. But we can access the file path only when multer successfully uploads the image. Is there any other way to get a file path before uploading an image or any different approach […]

Categories
Development React

React – TypeError: Cannot read property ‘length’ of undefined

Im trying to build a form validation system in React as forms are being filled, like so: Orders.jsx import { orderFormRules } from ‘./forms/form-rules.js’; import FormErrors from ‘./forms/FormErrors.jsx’; class Orders extends Component { constructor (props) { super(props); this.state = { formClient: { client: ”, phone: ”, email: ”, select: ”, }, clients:[], orderFormRules:orderFormRules, valid:false }; […]

Categories
Development

Using phoenix channel in ionic 3

I am trying to connect the phoenix-channels installed by npm into my ionic project. I am importing the module like this import * as phx_client from ‘../../../node_modules/phoenix-channels’ And trying to use it in a provider like this import { HttpClient } from ‘@angular/common/http’; import { Injectable } from ‘@angular/core’; import * as phx_client from ‘../../../node_modules/phoenix-channels’ […]

Categories
API Development HTTP

I keep getting http POST http://localhost:3000/api/authenticate 404 (Not Found)

am using angular 6 and express when am developing this api on authentcate uri it returning Http failure response for http://localhost:3000/api/authenticate: 404 Not Found i have tried removing of the responses on my user.controller.js but the problem persisits it seems am missing out some point here and i dont know here it is at first […]

Categories
Development Google

Gmail Add On Google Script incorrect behaviour

I’m creating a Gmail Add On that sends certain information of the emails to a backend endpoint and in order to do that it must select and format the email addresses of the emails in the following way: If the email is in Inbox, the address should be the one of the sender. If the […]

Categories
Development

Why setCustomValidity not working in a form of react and redux app?

I am trying to change default required pop-up message ‘Please fill out this field’ to my custom message but in react setCustomValidity is not supporting or not working somehow, please suggest what to do? I have tried almost everything which is available on internet… <form id=”link-account-form” onSubmit={ e=> this.saveAddress(e)}> <fieldset className=”form-fieldset l-receipt-receipt__fieldset lastFieldSet”> <p style=fontSize>Business […]